[][src]Type Definition ranged_num::UZeroTo

type UZeroTo<Max> = Ranged<U0, Max, usize>;

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

Example:

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