pub trait AsBits {
type Bits: Bits;
// Required methods
fn to_bits(self) -> Self::Bits;
fn from_bits(b: Self::Bits) -> Self;
}
Expand description
Conversions to and from bit representations.
Required Associated Types§
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.