serde_persistent_deserializer

Trait AsMutDeserializer

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

    // Required methods
    fn as_mut_deserializer<'a>(
        &'a mut self,
    ) -> impl Deserializer<'de, Error = Self::Error>;
    fn is_human_readable(&self) -> bool;
}
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_mut_deserializer<'a>( &'a mut self, ) -> impl Deserializer<'de, Error = Self::Error>

Produces a deserializer object.

Source

fn is_human_readable(&self) -> bool

Determine whether Deserialize implementations should expect to deserialize their human-readable form.

This method will be called in the Deserializer::is_human_readable impl for PersistentDeserializer.

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§