Struct quick_xml::Element
[−]
[src]
pub struct Element { // some fields omitted }
Wrapper around Vec
The purpose of not returning a String directly is to postpone calculations (utf8 conversion) to the last moment: byte checks are enough in most cases
Methods
impl Element
[src]
fn as_bytes(&self) -> &[u8]
name as &u8
fn as_str(&self) -> Result<&str>
name as str, (without eventual attributes)
fn attributes(&self) -> Attributes
get attributes iterator
fn into_string(self) -> Result<String>
consumes entire self (including eventual attributes!) and returns String
useful when we need to get Text event value (which don't have attributes)
Trait Implementations
impl Clone for Element
[src]
fn clone(&self) -> Element
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more