Trait ToUsize
trait ToUsize
Helper trait to convert numbers to usize.
By default, usize implements From<u8> and From<u16> but not
From<u32> and From<u64> because that would be invalid on some
platforms. This trait implements the conversion for platforms
with 32 and 64 bits pointer platforms
Required Methods
fn to_usize(self: &Self) -> usizeconverts self to usize
Implementors
impl ToUsize for u32impl ToUsize for usizeimpl ToUsize for u16impl ToUsize for u64impl ToUsize for u8