pub trait Decode: Sized {
type Decoder: Decoder<Item = Self> + Deferred<BufferedIncoming> + Default + Send + 'static;
type ListDecoder: Decoder<Item = Vec<Self>> + Default + 'static;
}Expand description
Defines value decoding
Required Associated Types§
Sourcetype Decoder: Decoder<Item = Self> + Deferred<BufferedIncoming> + Default + Send + 'static
type Decoder: Decoder<Item = Self> + Deferred<BufferedIncoming> + Default + Send + 'static
Decoder used to decode value
Sourcetype ListDecoder: Decoder<Item = Vec<Self>> + Default + 'static
type ListDecoder: Decoder<Item = Vec<Self>> + Default + 'static
Decoder used to decode lists of value
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".