pub trait Decode<T>: Sized {
type Decoder: Decoder<Item = Self> + Deferred<Incoming<T>> + 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<Incoming<T>> + Default + Send + 'static
type Decoder: Decoder<Item = Self> + Deferred<Incoming<T>> + 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", so this trait is not object safe.