check_in_range_inclusive_u8

Function check_in_range_inclusive_u8 

Source
pub fn check_in_range_inclusive_u8(
    value: u8,
    l: u8,
    r: u8,
    param: &str,
) -> Result<()>
Expand description

Checks the u8 value is in range [l, r] (inclusive).

ยงErrors

Returns an error if the validation check fails.