Trait EncodableWith

Source
pub trait EncodableWith<E: Encoding>: SealedE<E> {
    // Required method
    fn encode(&self) -> Result<Vec<u8>, E::EncodeError>;
}

Required Methods§

Source

fn encode(&self) -> Result<Vec<u8>, E::EncodeError>

Implementors§

Source§

impl<E: Encoding, T> EncodableWith<E> for T
where for<'a> Cover<&'a T>: EncodableWithImpl<E>,