pub trait FromSafeCastArch<T> {
// Required method
fn from_safe_cast_arch(value: T) -> Self;
}Expand description
Trait identical to FromSafeCast, but for conversions that are not
available on all architectures.
Required Methods§
Sourcefn from_safe_cast_arch(value: T) -> Self
fn from_safe_cast_arch(value: T) -> Self
Create a Self from value. This operation is guaranteed to be lossless.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl FromSafeCastArch<u64> for usize
Available on CONFIG_64BIT only.
impl FromSafeCastArch<u64> for usize
Available on
CONFIG_64BIT only.