pub trait WithSerializer: Sized {
type Serializer<'x>: Serializer<'x, Self>
where Self: 'x;
}
Expand description
Trait that defines the Serializer
for a type.
Required Associated Types§
Sourcetype Serializer<'x>: Serializer<'x, Self>
where
Self: 'x
type Serializer<'x>: Serializer<'x, Self> where Self: 'x
The serializer to use for this type.
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.