pub trait Binary: Sized {
const S: usize = _;
const N: u64 = _;
// Provided methods
fn as_binary(&self) -> &[u8] ⓘ { ... }
fn as_binary_mut(&mut self) -> &mut [u8] ⓘ { ... }
fn from_binary(data: &[u8]) -> &Self { ... }
fn from_binary_mut(data: &mut [u8]) -> &mut Self { ... }
fn zeroed(&mut self) { ... }
}Provided Associated Constants§
Provided Methods§
fn as_binary(&self) -> &[u8] ⓘ
fn as_binary_mut(&mut self) -> &mut [u8] ⓘ
fn from_binary(data: &[u8]) -> &Self
fn from_binary_mut(data: &mut [u8]) -> &mut Self
fn zeroed(&mut self)
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.