pub trait Decodable: Sized {
// Required method
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>;
}Expand description
RLP decodable trait
Required Methods§
Sourcefn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
fn decode(rlp: &Rlp<'_>) -> Result<Self, DecoderError>
Decode a value from RLP bytes
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.