Skip to main content

XmlWriteExt

Trait XmlWriteExt 

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

Extensions for XmlStreamWriter.

Required Methods§

Source

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

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§