pub struct XmlElement { /* private fields */ }
Implementations§
Source§impl XmlElement
impl XmlElement
pub fn new(event: XmlEvent) -> XmlElement
pub fn new_with_children( event: XmlEvent, children: Vec<XmlElement>, ) -> XmlElement
pub fn custom( event: XmlEvent, children: Vec<XmlElement>, data: Option<XmlEvent>, ) -> XmlElement
pub fn parse(data: &str) -> Option<XmlElement>
pub fn name(&self) -> &str
pub fn mut_change_name_to(&mut self, new_name: &str)
pub fn change_name_to(&self, new_name: &str) -> XmlElement
pub fn mut_change_data(&mut self, new_data: &str)
pub fn data(&self) -> Option<&str>
pub fn has_attributes(&self) -> bool
pub fn attributes(&self) -> Vec<XmlAttribute<'_>>
pub fn attribute_with_name(&self, name: &str) -> Option<XmlAttribute<'_>>
pub fn attribute_value_of(&self, name: &str) -> Option<&str>
pub fn children_with_name(&self, name: &str) -> Vec<&XmlElement>
pub fn descendents_with_name(&self, name: &str) -> Vec<&XmlElement>
pub fn children(&self) -> &Vec<XmlElement>
pub fn mut_children(&mut self) -> &mut Vec<XmlElement>
pub fn has_children(&self) -> bool
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
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