xsd_parser::quick_xml

Trait WithSerializer

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

Source

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.

Implementors§

Source§

impl<X> WithSerializer for X
where X: SerializeBytes + Debug,

Source§

type Serializer<'x> = ContentSerializer<'x, X> where Self: 'x