Trait DecodableWith

Source
pub trait DecodableWith<E: Encoding>: Sized + SealedD<E> {
    // Required method
    fn decode(data: &[u8]) -> Result<Self, E::DecodeError>;
}

Required Methods§

Source

fn decode(data: &[u8]) -> Result<Self, E::DecodeError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E: Encoding, T> DecodableWith<E> for T
where Cover<T>: DecodableWithImpl<E>,