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