pub trait FromUsize<T> {
// Required method
fn from_usize(val: usize) -> T;
}Expand description
Convert a usize to an Int
Required Methods§
Sourcefn from_usize(val: usize) -> T
fn from_usize(val: usize) -> T
Convert a usize to an Int
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.