pub struct XmlTemplate { /* private fields */ }Expand description
Runtime output produced by xml!.
A template can be materialized as a full Document when it contains exactly
one root element, or used as a fragment when embedded as children.
Implementations§
Source§impl XmlTemplate
impl XmlTemplate
pub fn from_fragment(fragment: FragmentBuilder) -> Self
pub fn into_fragment(self) -> FragmentBuilder
pub fn into_document(self) -> XmlResult<Document>
Trait Implementations§
Source§impl Clone for XmlTemplate
impl Clone for XmlTemplate
Source§fn clone(&self) -> XmlTemplate
fn clone(&self) -> XmlTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XmlTemplate
impl Debug for XmlTemplate
Source§impl Default for XmlTemplate
impl Default for XmlTemplate
Source§fn default() -> XmlTemplate
fn default() -> XmlTemplate
Returns the “default value” for a type. Read more
impl Eq for XmlTemplate
Source§impl IntoXmlFragment for XmlTemplate
impl IntoXmlFragment for XmlTemplate
fn into_xml_fragment(self) -> XmlResult<FragmentBuilder>
Source§impl PartialEq for XmlTemplate
impl PartialEq for XmlTemplate
Source§fn eq(&self, other: &XmlTemplate) -> bool
fn eq(&self, other: &XmlTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for XmlTemplate
Auto Trait Implementations§
impl Freeze for XmlTemplate
impl RefUnwindSafe for XmlTemplate
impl Send for XmlTemplate
impl Sync for XmlTemplate
impl Unpin for XmlTemplate
impl UnsafeUnpin for XmlTemplate
impl UnwindSafe for XmlTemplate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more