Trait sampling::histogram::HasUnsignedVersion
source · 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
Object Safety§
This trait is not object safe.