Trait SerializeAttributes

Source
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§

Source

type Ok

The type of the value that is returned when serialization is successful.

Source

type Error: Error

The type of the error that is returned when serialization fails.

Required Methods§

Source

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.

Implementations on Foreign Types§

Source§

impl<T: SerializeAttributes> SerializeAttributes for &mut T

Implementors§