macro_rules! ensure_ranged {
($type:ident : $value:ident) => { ... };
($type:ident : $value:ident $(as $as_type:ident)? * $factor:expr) => { ... };
}
Expand description
Constructs a ranged integer, returning a ComponentRange
error if the value is out of range.