pub trait FromBytes {
// Required method
fn from_bytes(data: Vec<u8>) -> Result<Self, DeserializeError>
where Self: Sized;
}Required Methods§
fn from_bytes(data: Vec<u8>) -> Result<Self, DeserializeError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".