The methods of usize that core::num defines, and the instances that mention it.
Methods
const MINsource
const MIN: usize = 0;
The smallest usize.
const MAXsource
const MAX: usize = !0usize;
The largest usize.
const BITSsource
const BITS: u32 = 32 + 32 * (((usize::MAX >> 31usize >> 1usize) & 1usize) as u32);
The width of usize in bits, the target's pointer width. 64 when the bits above the low 32 are set, else 32.
Instances
instance Ord[usize, usize]source
instance Ord[usize, usize] { ... }
In core::cmp.
usizes in numeric order.
instance Format[usize, W]source
forall W where Writer[W].
instance Format[usize, W] { ... }
In core::fmt.
A usize formats as its decimal digits.
instance Printable[usize, W]source
forall W where Writer[W].
instance Printable[usize, W] { ... }
In core::fmt.
A usize prints as its decimal digits.
instance Hash[usize]source
instance Hash[usize] { ... }
In core::hash.
A usize hashes as its 64-bit value.
instance Eq[usize, usize]source
instance Eq[usize, usize] { ... }
In core::hash.
usizes are equal when their values are.
instance HashIn[usize, C]source
forall C.
instance HashIn[usize, C] { ... }
In core::hash.
A usize key, under any capability: hashed and compared as Hash and Eq do.
instance Iterator[Range -> usize]source
instance Iterator[Range -> usize] { ... }
In core::iter.
range: the next number, and None from end on, however often it is asked.
instance Iterator[Enumerate[I] -> Pair[usize, T]]source
forall I, T where Iterator[I -> T].
instance Iterator[Enumerate[I] -> Pair[usize, T]] { ... }
In core::iter.
enumerate: the next item with its index.