Struct strong_xml::XmlReader[][src]

pub struct XmlReader<'a> { /* fields omitted */ }

Xml Reader

It behaves almost exactly like xmlparser::Tokenizer::from("...").peekable() but with some helper functions.

Implementations

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

pub fn new(text: &'a str) -> XmlReader<'a>[src]

pub fn next(&mut self) -> Option<Result<Token<'a>, Error>>[src]

pub fn peek(&mut self) -> Option<&Result<Token<'a>, Error>>[src]

pub fn read_text(&mut self, end_tag: &str) -> XmlResult<Cow<'a, str>>[src]

pub fn read_till_element_start(&mut self, end_tag: &str) -> XmlResult<()>[src]

pub fn find_attribute(&mut self) -> XmlResult<Option<(&'a str, Cow<'a, str>)>>[src]

pub fn find_element_start(
    &mut self,
    end_tag: Option<&str>
) -> XmlResult<Option<&'a str>>
[src]

pub fn read_to_end(&mut self, end_tag: &str) -> XmlResult<()>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for XmlReader<'a>

impl<'a> Send for XmlReader<'a>

impl<'a> Sync for XmlReader<'a>

impl<'a> Unpin for XmlReader<'a>

impl<'a> UnwindSafe for XmlReader<'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.