[][src]Struct rapid_xml::parser::Parser

pub struct Parser<R: Read> { /* fields omitted */ }

A low level XML parser that emits Events as it reads the incoming XML.

Implementations

impl<R: Read> Parser<R>[src]

pub fn new(reader: R) -> Self[src]

Create new Parser from given reader.

pub fn peek(&mut self) -> Result<Event<'_>, ParseError>[src]

Peek the next Event

pub fn next(&mut self) -> Result<Event<'_>, ParseError>[src]

Retrieve next Event

pub fn finish_tag(&mut self, depth: usize) -> Result<(), ParseError>[src]

Consume events until we leave given depth of tags. All attributes and nested tags are ignored.

With depth = 0, it does nothing. With depth = 1, it finishes the current tag. With depth = 2, it finishes the current tag and its parent. ...

Auto Trait Implementations

impl<R> RefUnwindSafe for Parser<R> where
    R: RefUnwindSafe

impl<R> Send for Parser<R> where
    R: Send

impl<R> Sync for Parser<R> where
    R: Sync

impl<R> Unpin for Parser<R> where
    R: Unpin

impl<R> UnwindSafe for Parser<R> where
    R: UnwindSafe

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.