pub trait BitChunk:
Sealed
+ PrimInt
+ NativeType
+ Binary
+ ShlAssign
+ Not<Output = Self>
+ ShrAssign<usize>
+ ShlAssign<usize>
+ Shl<usize, Output = Self>
+ BitAndAssign {
// Required methods
fn to_ne_bytes(self) -> Self::Bytes;
fn from_ne_bytes(v: Self::Bytes) -> Self;
}
Expand description
Required Methods§
Sourcefn to_ne_bytes(self) -> Self::Bytes
fn to_ne_bytes(self) -> Self::Bytes
convert itself into bytes.
Sourcefn from_ne_bytes(v: Self::Bytes) -> Self
fn from_ne_bytes(v: Self::Bytes) -> Self
convert itself from bytes.
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.