pub struct ElementTemplate { /* private fields */ }Implementations§
Source§impl ElementTemplate
impl ElementTemplate
pub fn attr( self, name: impl Into<String>, value: impl Into<String>, ) -> XmlResult<Self>
pub fn attr_param( self, name: impl Into<String>, param: impl Into<String>, ) -> XmlResult<Self>
pub fn child(self, child: Template) -> Self
pub fn default_namespace(self, uri: impl Into<String>) -> XmlResult<Self>
pub fn namespace( self, prefix: impl Into<String>, uri: impl Into<String>, ) -> XmlResult<Self>
pub fn build(self) -> Template
Trait Implementations§
Source§impl Clone for ElementTemplate
impl Clone for ElementTemplate
Source§fn clone(&self) -> ElementTemplate
fn clone(&self) -> ElementTemplate
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 ElementTemplate
impl Debug for ElementTemplate
impl Eq for ElementTemplate
Source§impl PartialEq for ElementTemplate
impl PartialEq for ElementTemplate
Source§fn eq(&self, other: &ElementTemplate) -> bool
fn eq(&self, other: &ElementTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ElementTemplate
Auto Trait Implementations§
impl Freeze for ElementTemplate
impl RefUnwindSafe for ElementTemplate
impl Send for ElementTemplate
impl Sync for ElementTemplate
impl Unpin for ElementTemplate
impl UnsafeUnpin for ElementTemplate
impl UnwindSafe for ElementTemplate
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