Trait svd_parser::elementext::ElementExt [−][src]
Defines extensions for implementation over xmltree::Element
Required methods
fn get_child_text_opt<K>(&self, k: K) -> Result<Option<String>> where
String: PartialEq<K>,
[src]
String: PartialEq<K>,
fn get_child_text<K>(&self, k: K) -> Result<String> where
String: PartialEq<K>,
K: Display + Clone,
[src]
String: PartialEq<K>,
K: Display + Clone,
fn get_text(&self) -> Result<String>
[src]
fn get_child_elem<'a>(&'a self, n: &str) -> Result<&'a Element>
[src]
fn get_child_u32(&self, n: &str) -> Result<u32>
[src]
fn get_child_u64(&self, n: &str) -> Result<u64>
[src]
fn get_child_bool(&self, n: &str) -> Result<bool>
[src]
fn merge(&mut self, n: &Self)
[src]
fn debug(&self)
[src]
Implementations on Foreign Types
impl ElementExt for Element
[src]
Implements extensions for xmltree::Element
fn get_child_text_opt<K>(&self, k: K) -> Result<Option<String>> where
String: PartialEq<K>,
[src]
String: PartialEq<K>,
fn get_child_text<K>(&self, k: K) -> Result<String> where
String: PartialEq<K>,
K: Display + Clone,
[src]
String: PartialEq<K>,
K: Display + Clone,
fn get_text(&self) -> Result<String>
[src]
Get text contained by an XML Element
fn get_child_elem<'a>(&'a self, n: &str) -> Result<&'a Element>
[src]
Get a named child element from an XML Element
fn get_child_u32(&self, n: &str) -> Result<u32>
[src]
Get a u32 value from a named child element
fn get_child_u64(&self, n: &str) -> Result<u64>
[src]
Get a u64 value from a named child element
fn get_child_bool(&self, n: &str) -> Result<bool>
[src]
Get a bool value from a named child element