pub trait PlatformDeserializable {
// Required method
fn deserialize_from_bytes_no_limit(
data: &[u8],
) -> Result<Self, ProtocolError>
where Self: Sized;
// Provided method
fn deserialize_from_bytes(data: &[u8]) -> Result<Self, ProtocolError>
where Self: Sized { ... }
}Required Methods§
fn deserialize_from_bytes_no_limit(data: &[u8]) -> Result<Self, ProtocolError>where
Self: Sized,
Provided Methods§
fn deserialize_from_bytes(data: &[u8]) -> Result<Self, ProtocolError>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".