pub trait Encodable {
// Required method
fn rlp_append(&self, s: &mut RlpStream);
// Provided method
fn rlp_bytes(&self) -> BytesMut { ... }
}Expand description
Structure encodable to RLP
Required Methods§
Sourcefn rlp_append(&self, s: &mut RlpStream)
fn rlp_append(&self, s: &mut RlpStream)
Append a value to the stream
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".