pub trait HasUnsignedVersion {
type Unsigned;
type LeBytes;
// Required methods
fn to_le_bytes(self) -> Self::LeBytes;
fn from_le_bytes(bytes: Self::LeBytes) -> Self;
}
Expand description
Helper trait for efficient calculations in other implementations
Required Associated Types§
Required Methods§
Sourcefn to_le_bytes(self) -> Self::LeBytes
fn to_le_bytes(self) -> Self::LeBytes
to little endian. See implementation for integers in the standard library
Sourcefn from_le_bytes(bytes: Self::LeBytes) -> Self
fn from_le_bytes(bytes: Self::LeBytes) -> Self
from little endian. See implementation for integers in the standard library
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.