Skip to main content

FromSafeCastArch

Trait FromSafeCastArch 

Source
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§

Source

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.
Source§

fn from_safe_cast_arch(value: u64) -> Self

Implementors§