Skip to main content

validate_wind_segments

Function validate_wind_segments 

Source
pub fn validate_wind_segments(
    segments: &[WindSegment],
) -> Result<(), WindSegmentError>
Expand description

Validate every segment, reporting the first violation as a typed error carrying the caller’s segment index, the offending field, and the violated rule (MBA-1338).

Checked APIs (WindSock::try_new, try_integrate_trajectory, try_solve_trajectory_rust) call this before sorting, vector precomputation, or producing any trajectory points.