pub struct XMLElement { /* private fields */ }
Implementations§
Source§impl XMLElement
impl XMLElement
pub fn new(name: impl ToString) -> Self
pub fn add_attribute(&mut self, name: impl ToString, value: impl ToString)
pub fn add_child(&mut self, child: XMLElement)
pub fn add_text(&mut self, text: String, escape: bool, cdata: bool)
pub fn write<W: Write>(&self, writer: W) -> Result<()>
Trait Implementations§
Source§impl Clone for XMLElement
impl Clone for XMLElement
Source§fn clone(&self) -> XMLElement
fn clone(&self) -> XMLElement
Returns a copy of the value. Read more
1.0.0 · 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 XMLElement
impl Debug for XMLElement
Source§impl Display for XMLElement
impl Display for XMLElement
Source§impl PartialEq for XMLElement
impl PartialEq for XMLElement
impl Eq for XMLElement
impl StructuralPartialEq for XMLElement
Auto Trait Implementations§
impl Freeze for XMLElement
impl RefUnwindSafe for XMLElement
impl Send for XMLElement
impl Sync for XMLElement
impl Unpin for XMLElement
impl UnwindSafe for XMLElement
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.