Skip to main content

validate_rect

Function validate_rect 

Source
pub fn validate_rect(
    bounds: Rect,
    path: &str,
    field: &str,
) -> Result<(), ValidationError>
Expand description

Rejects nonfinite/inverted corners or nonfinite spans; zero-area rectangles are valid.