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§
Sourcefn encode_child<T>(
&mut self,
tag: &str,
value: &T,
context: &Context<'_>,
) -> Result<(), Error>where
T: XmlEncodable + ?Sized,
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.