UZeroTo

Type Alias UZeroTo 

Source
pub type UZeroTo<Max> = Ranged<U0, Max, usize>;
Expand description

Represent a usize in [0, Max] (inclusive).

Example:

use typenum::U5;
use ranged_num::UZeroTo;
 
let x: UZeroTo<U5> = UZeroTo::try_new(4).unwrap();

Aliased Typeยง

pub struct UZeroTo<Max>(/* private fields */);