pub trait XmlSerialize {
// Required methods
fn serialize<W: Write>(
&self,
ns: Option<Namespace<'_>>,
tag: Option<&[u8]>,
namespaces: &HashMap<Namespace<'_>, &[u8]>,
writer: &mut Writer<W>,
) -> Result<()>;
fn attributes<'a>(
&self,
) -> Option<impl IntoIterator<Item: Into<Attribute<'a>>>>;
}
Required Methods§
fn serialize<W: Write>( &self, ns: Option<Namespace<'_>>, tag: Option<&[u8]>, namespaces: &HashMap<Namespace<'_>, &[u8]>, writer: &mut Writer<W>, ) -> Result<()>
fn attributes<'a>(&self) -> Option<impl IntoIterator<Item: Into<Attribute<'a>>>>
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.