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§
Required Methods§
Sourcefn as_transient_deserializer<'a>(
&'a mut self,
) -> impl Deserializer<'de, Error = Self::Error>
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.