Skip to main content

parse_wind_segment_str_detailed

Function parse_wind_segment_str_detailed 

Source
pub fn parse_wind_segment_str_detailed(
    s: &str,
    imperial: bool,
) -> Result<(WindSegment, bool), String>
Expand description

parse_wind_segment_str plus clock-form provenance (MBA-1367/MBA-1368): the second tuple element is true when the ANGLE token used a marked clock form (3oc, 10h30) rather than plain degrees — earth-fixed compass mode must reject clock positions, which are shooter-relative by definition. Error strings stay in the legacy String family (pre-MBA-1338 boundary): the typed WindDirectionParseError converts to a plain message here.