Trait svd_parser::elementext::ElementExt[][src]

pub trait ElementExt {
    fn get_child_text_opt<K>(&self, k: K) -> Result<Option<String>>
    where
        String: PartialEq<K>
;
fn get_child_text<K>(&self, k: K) -> Result<String>
    where
        String: PartialEq<K>,
        K: Display + Clone
;
fn get_text(&self) -> Result<String>;
fn get_child_elem<'a>(&'a self, n: &str) -> Result<&'a Element>;
fn get_child_u32(&self, n: &str) -> Result<u32>;
fn get_child_u64(&self, n: &str) -> Result<u64>;
fn get_child_bool(&self, n: &str) -> Result<bool>;
fn merge(&mut self, n: &Self);
fn debug(&self); }

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]

fn get_child_text<K>(&self, k: K) -> Result<String> where
    String: PartialEq<K>,
    K: Display + Clone
[src]

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]

Loading content...

Implementations on Foreign Types

impl ElementExt for Element[src]

Implements extensions for xmltree::Element

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

Loading content...

Implementors

Loading content...