parse_wind_observation

Function parse_wind_observation 

Source
pub fn parse_wind_observation(
    s: &str,
    units: UnitSystem,
) -> Result<WindObservation, String>
Expand description

Parse a --miss RANGE:RIGHT[:SIGMA] token.

RANGE is in the caller’s distance units (yards imperial / meters metric); RIGHT and SIGMA are LINEAR INCHES in both unit systems, matching the existing --drop-unit in contract (a tape measurement off the target is reported in inches whatever the range unit is). Returns a user-facing error string on malformed input.