pub trait SerializeAttributes: Sized {
type Ok;
type Error: Error;
// Required method
fn serialize_attribute<A: SerializeAttribute>(
&mut self,
a: &A,
) -> Result<Self::Ok, Self::Error>;
}Expand description
A trait for serializing attributes.
Required Associated Types§
Required Methods§
Sourcefn serialize_attribute<A: SerializeAttribute>(
&mut self,
a: &A,
) -> Result<Self::Ok, Self::Error>
fn serialize_attribute<A: SerializeAttribute>( &mut self, a: &A, ) -> Result<Self::Ok, Self::Error>
Serializes an attribute.
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.