pub trait Encodable {
// Required method
fn encode(&self, out: &mut dyn BufMut);
// Provided method
fn length(&self) -> usize { ... }
}
Expand description
A type that can be encoded via RLP.
pub trait Encodable {
// Required method
fn encode(&self, out: &mut dyn BufMut);
// Provided method
fn length(&self) -> usize { ... }
}
A type that can be encoded via RLP.