Trait Decoder

Source
pub trait Decoder<Encoding, Strategy, Value>
where Encoding: HasEncodedType + HasErrorType,
{ // Required method fn decode( encoding: &Encoding, encoded: &Encoding::Encoded, ) -> Result<Value, Encoding::Error>; }

Required Methods§

Source

fn decode( encoding: &Encoding, encoded: &Encoding::Encoded, ) -> Result<Value, Encoding::Error>

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<Component, Encoding, Strategy, Value> Decoder<Encoding, Strategy, Value> for Component
where Encoding: HasEncodedType + HasErrorType, Component: DelegateComponent<DecoderComponent>, Component::Delegate: Decoder<Encoding, Strategy, Value>,

Source§

impl<Encoding, Strategy, InStrategy, Value> Decoder<Encoding, Strategy, Value> for EncodeUsingStrategy<InStrategy>
where Encoding: CanDecode<InStrategy, Value>, InStrategy: Async,

Source§

impl<Encoding, Strategy, Value> Decoder<Encoding, Strategy, Value> for ReturnEncoded
where Encoding: HasEncodedType<Encoded = Value> + HasErrorType, Value: Clone,

Source§

impl<Encoding, Strategy, Value, Components, Delegate> Decoder<Encoding, Strategy, Value> for DelegateEncoding<Components>
where Encoding: HasEncodedType + HasErrorType, Components: DelegateComponent<(Strategy, Value), Delegate = Delegate>, Delegate: Decoder<Encoding, Strategy, Value>,

Source§

impl<Encoding, Strategy, Value, Raw> Decoder<Encoding, Strategy, Value> for ConvertAndEncode<Raw>
where Encoding: CanDecode<Strategy, Raw> + CanConvert<Raw, Value>, Raw: Async,