pub trait BeBytes: Sized {
// Required methods
fn to_be_bytes(&self) -> Vec<u8> ⓘ;
fn from_be_bytes(bytes: &[u8]) -> Option<Self>;
}Required Methods§
fn to_be_bytes(&self) -> Vec<u8> ⓘ
fn from_be_bytes(bytes: &[u8]) -> Option<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.