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§
Required Methods§
Sourcefn as_mut_deserializer<'a>(
&'a mut self,
) -> impl Deserializer<'de, Error = Self::Error>
fn as_mut_deserializer<'a>( &'a mut self, ) -> impl Deserializer<'de, Error = Self::Error>
Produces a deserializer object.
Sourcefn is_human_readable(&self) -> bool
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.