pub trait Encodable<S: Encoder> {
    fn consensus_encode(&self, e: &mut S) -> Result<(), Error>;
}
Expand description

Data which can be encoded in a consensus-consistent way

Required Methods§

Encode an object with a well-defined format, should only ever error if the underlying Encoder errors.

Implementations on Foreign Types§

Implementors§