require_hold_bounds

Function require_hold_bounds 

Source
pub fn require_hold_bounds(
    up: Option<f64>,
    down: Option<f64>,
    left: Option<f64>,
    right: Option<f64>,
) -> Result<Option<HoldBounds>, String>
Expand description

The require_angular_pair all-or-nothing rule extended to HoldBounds’ four fields (MBA-1348): all four or none, any other combination is a named-field Err (same no-silent-fabrication rationale — see require_angular_pair). Names the four CLI FLAGS in any error, not the internal struct fields (MBA-1348 review fix I2) — see require_angular_pair’s own doc comment for why that distinction matters.