pub trait AsDecoder {
type Cx: Context + ?Sized;
type Decoder<'this>: Decoder<'this, Cx = Self::Cx, Error = <Self::Cx as Context>::Error, Mode = <Self::Cx as Context>::Mode>
where Self: 'this;
// Required method
fn as_decoder(
&self
) -> Result<Self::Decoder<'_>, <Self::Cx as Context>::Error>;
}
Expand description
Trait that allows a type to be repeatedly coerced into a decoder.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.