1 2 3 4 5 6 7 8 9
use crate::{Result, XMLElement};
/// A trait for converting (and consuming) a value to a `XMLElement`.
///
/// This trait should be implemented by all concrete types needed to be converted to a `XMLElement`.
pub trait ToXMLElement {
/// Converts the given value to `XMLElement`.
fn to_xmlelement(self) -> Result<XMLElement>;
}