pub trait Dynamic: Sized {
// Required methods
fn from_bytes(bytes: Vec<u8>) -> Result<Self>;
fn into_bytes(&self) -> Result<&[u8]>;
}
Required Methods§
fn from_bytes(bytes: Vec<u8>) -> Result<Self>
fn into_bytes(&self) -> Result<&[u8]>
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.