Corelib
pub trait Bounded
T
const MIN: T;
use core::num::traits::Bounded; let min = Bounded::::MIN; assert!(min == 0);
const MAX: T;
use core::num::traits::Bounded; let max = Bounded::::MAX; assert!(max == 255);
Was this page helpful?