pub trait IntoUsizeLossywhere
Self: Sealed,{
// Required method
fn into_usize_lossy(self) -> usize;
}
Expand description
Trait for number types that can be converted into usize
, potentially lossily
Required Methods§
Sourcefn into_usize_lossy(self) -> usize
fn into_usize_lossy(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.