Skip to main content

UntrustedDecoder

Trait UntrustedDecoder 

Source
pub trait UntrustedDecoder: Decoder { }
Expand description

A sealed decoder accepted by the explicit untrusted decoding traits.

Construct one with super::DecoderImpl::new_untrusted. Context changes and mutable references preserve this capability. Collection safeguards belong to DecodeUntrusted / BorrowDecodeUntrusted implementations; invoking ordinary super::Decode explicitly retains ordinary behavior.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: UntrustedDecoder> UntrustedDecoder for &mut T

Implementors§

Source§

impl<R: Reader, C: Config, Context> UntrustedDecoder for DecoderImpl<R, C, Context, true>