pub unsafe trait AsDecoder<'de> {
type Decoder: Decoder<'de>;
// Required method
fn as_decoder(&'de mut self) -> Self::Decoder;
}Expand description
A type that can be borrowed as a decoder.
§Safety
Moving a value of this type must not invalidate any references to chunks
returned from take_chunks. This usually means that the chunks returned
from take_chunks point to non-local memory (e.g. on the heap, elsewhere on
the stack).
Required Associated Types§
Required Methods§
Sourcefn as_decoder(&'de mut self) -> Self::Decoder
fn as_decoder(&'de mut self) -> Self::Decoder
Borrowes this value as a decoder.