XmlWriteExt

Trait XmlWriteExt 

Source
pub trait XmlWriteExt {
    // Required method
    fn encode_child<T: XmlEncodable + ?Sized>(
        &mut self,
        tag: &str,
        value: &T,
        context: &Context<'_>,
    ) -> EncodingResult<()>;
}
Expand description

Extensions for XmlStreamWriter.

Required Methods§

Source

fn encode_child<T: XmlEncodable + ?Sized>( &mut self, tag: &str, value: &T, context: &Context<'_>, ) -> EncodingResult<()>

Encode a value as a child element.

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§