pub trait EndianConvert: Aligned {
// Required methods
fn from<B: ByteOrder>(_: &Self::Unaligned) -> Self;
fn to<B: ByteOrder>(self) -> Self::Unaligned;
}Expand description
Describes a value that can be converted to and from a specified byte order.
Required Methods§
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.