[−][src]Struct rapid_xml::parser::Parser
A low level XML parser that emits Event
s 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,
R: RefUnwindSafe,
impl<R> Send for Parser<R> where
R: Send,
R: Send,
impl<R> Sync for Parser<R> where
R: Sync,
R: Sync,
impl<R> Unpin for Parser<R> where
R: Unpin,
R: Unpin,
impl<R> UnwindSafe for Parser<R> where
R: UnwindSafe,
R: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,