pub trait Writeable: Sized {
// Required methods
fn to_u8_be(_: &Self, _: &mut [u8]);
fn to_u8_le(_: &Self, _: &mut [u8]);
}
Expand description
Any type implementing Writeable can be encoded from binary.
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.