pub trait NativeCast: Portable + Copy {
type Native: Copy;
// Required methods
fn from_native(n: Self::Native) -> Self;
fn to_native(&self) -> Self::Native;
}Expand description
Trait for casting portable type to/from native counterparts.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".