Trait AsTransientDeserializer

Source
pub trait AsTransientDeserializer<'de> {
    type Error: Error;

    // Required method
    fn as_transient_deserializer<'a>(
        &'a mut self,
    ) -> impl Deserializer<'de, Error = Self::Error>;
}
Expand description

Describes a type that can produce a serde::Deserializer-implementing object.

Required Associated Types§

Source

type Error: Error

The deserialization error type.

Required Methods§

Source

fn as_transient_deserializer<'a>( &'a mut self, ) -> impl Deserializer<'de, Error = Self::Error>

Produces a deserializer object.

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§