pub trait FromToBits {
type BitsType;
// Required methods
fn to_le_bits(self) -> Self::BitsType;
fn from_le_bits(bits: Self::BitsType) -> Self;
}
Expand description
Exposes interface for splitting elements into an array of its composite bits.
Required Associated Types§
Required Methods§
sourcefn to_le_bits(self) -> Self::BitsType
fn to_le_bits(self) -> Self::BitsType
Converts Self
to the bits array type.
sourcefn from_le_bits(bits: Self::BitsType) -> Self
fn from_le_bits(bits: Self::BitsType) -> Self
Converts from an array of bits to Self
.
Object Safety§
This trait is not object safe.