DefaultDecode

Trait DefaultDecode 

Source
pub trait DefaultDecode: Decode<BincodeContext> {
    // Provided method
    fn decode<D: Decoder<Context = BincodeContext>>(
        decoder: &mut D,
    ) -> Result<Self, DecodeError>
       where Self: Sized { ... }
}
Expand description

Decode with the default () context to avoid repeated generic arguments.

Provided Methods§

Source

fn decode<D: Decoder<Context = BincodeContext>>( decoder: &mut D, ) -> Result<Self, DecodeError>
where Self: Sized,

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§