Signature
Trait constants
MIN
Returns the minimum value for typeT.
Signature
Examples
MAX
Returns the maximum value for typeT.
pub trait Bounded
T.
const MIN: T;
use core::num::traits::Bounded;
let min = Bounded::::MIN;
assert!(min == 0);
T.
const MAX: T;
use core::num::traits::Bounded;
let max = Bounded::::MAX;
assert!(max == 255);
Was this page helpful?