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
Object Safety§
This trait is not object safe.