pub trait XmlSerialize {
// Required methods
fn serialize(
&self,
ns: Option<Namespace<'_>>,
tag: Option<&str>,
namespaces: &HashMap<Namespace<'_>, &str>,
writer: &mut Writer<&mut Vec<u8>>,
) -> Result<()>;
fn attributes<'a>(&self) -> Option<Vec<Attribute<'a>>>;
}Required Methods§
fn serialize( &self, ns: Option<Namespace<'_>>, tag: Option<&str>, namespaces: &HashMap<Namespace<'_>, &str>, writer: &mut Writer<&mut Vec<u8>>, ) -> Result<()>
fn attributes<'a>(&self) -> Option<Vec<Attribute<'a>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".