Skip to main content

validate_range

Function validate_range 

Source
pub fn validate_range(value: u64, min: u64, max: u64, name: &str) -> Result<()>
Expand description

Check that a value falls within an expected range (inclusive).