Skip to main content

check_positive

Function check_positive 

Source
pub fn check_positive(value: f64, name: &str) -> PhysicsResult<f64>
Expand description

Returns Ok(value) if value > 0, otherwise Err(InvalidInput).