Macro hsh::hsh_in_range
source · macro_rules! hsh_in_range { ($value:expr, $min:expr, $max:expr) => { ... }; }
Expand description
This macro checks if the given value is within the given range. The range is inclusive of both endpoints.
Example
extern crate hsh;
use hsh::{ hsh_in_range };
let in_range = hsh_in_range!(5, 1, 10); // `in_range` will be true