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

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_bool(&self, n: &str) -> Result<bool>;
fn merge(&self, n: &Self) -> 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>, 

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_bool(&self, n: &str) -> Result<bool>

fn merge(&self, n: &Self) -> Self

fn debug(&self)

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_bool(&self, n: &str) -> Result<bool>[src]

Get a bool value from a named child element

Loading content...

Implementors

Loading content...