Struct trashy_xml::ParsedXml[][src]

pub struct ParsedXml<'a> {
    pub tokens: Vec<Rc<RefCell<XmlToken<'a>>>>,
    pub errors: Vec<FmtXmlError>,
    // some fields omitted
}

Struct returned after calling XmlParser::parse().

Fields

tokens: Vec<Rc<RefCell<XmlToken<'a>>>>

Vector with the tokens.

errors: Vec<FmtXmlError>

Vector with error tokens.

Implementations

impl<'a> ParsedXml<'a>[src]

pub fn elements_from_name(&self, name: &str) -> Vec<OpenElement<'a>>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Takes a name and returns all open elements matching that name.

pub fn elements(&self) -> Vec<OpenElement<'a>>

Notable traits for Vec<u8, A>

impl<A> Write for Vec<u8, A> where
    A: Allocator
[src]

Returns vector with all open elements.

pub fn token_from_position(
    &self,
    position: FilePosition
) -> Option<XmlToken<'a>>
[src]

Trait Implementations

impl<'a> Debug for ParsedXml<'a>[src]

impl<'a> Default for ParsedXml<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for ParsedXml<'a>

impl<'a> !Send for ParsedXml<'a>

impl<'a> !Sync for ParsedXml<'a>

impl<'a> Unpin for ParsedXml<'a>

impl<'a> !UnwindSafe for ParsedXml<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.