pub trait IntoUsizewhere
Self: Sealed,{
// Required method
fn into_usize(self) -> usize;
}
Expand description
Trait for number types that can be converted into usize
, losslessly
Required Methods§
Sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Convert into a usize
value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.