Skip to main content

protocol_rect

Function protocol_rect 

pub fn protocol_rect(coords: [f64; 4]) -> Result<Rect, String>
Expand description

Convert protocol coordinates into a validated rectangle.

ยงErrors

Returns an error when any coordinate is non-finite or the rectangle has non-positive width or height.