Trait SerializeElementAttributes

Source
pub trait SerializeElementAttributes: SerializeAttributes {
    type ChildrenSerializeSeq: SerializeSeq<Ok = Self::Ok, Error = Self::Error>;

    // Required methods
    fn serialize_children(
        self,
    ) -> Result<Self::ChildrenSerializeSeq, Self::Error>;
    fn end(self) -> Result<Self::Ok, Self::Error>;
}
Expand description

A trait for serializing attributes of an element.

Required Associated Types§

Source

type ChildrenSerializeSeq: SerializeSeq<Ok = Self::Ok, Error = Self::Error>

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

Required Methods§

Source

fn serialize_children(self) -> Result<Self::ChildrenSerializeSeq, Self::Error>

Serialize the children of this element.

Source

fn end(self) -> Result<Self::Ok, Self::Error>

End the serialization of this element with no children.

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.

Implementors§