Skip to main content

IntoSafeCastArch

Trait IntoSafeCastArch 

Source
pub trait IntoSafeCastArch<T> {
    // Required method
    fn into_safe_cast_arch(self) -> T;
}
Expand description

Trait identical to IntoSafeCast, but for conversions that are not available on all architectures.

Required Methods§

Source

fn into_safe_cast_arch(self) -> T

Convert self into a T. This operation is guaranteed to be lossless.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<S, T> IntoSafeCastArch<T> for S
where T: FromSafeCastArch<S>,

Reverse operation for types implementing FromSafeCastArch.