[][src]Struct xml::reader::Events

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

An iterator over XML events created from some type implementing Read.

When the next event is xml::event::Error or xml::event::EndDocument, then it will be returned by the iterator once, and then it will stop producing events.

Methods

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

pub fn into_inner(self) -> EventReader<R>[src]

Unwraps the iterator, returning the internal EventReader.

pub fn source(&self) -> &R[src]

pub fn source_mut(&mut self) -> &mut R[src]

Trait Implementations

impl<R: Read> Iterator for Events<R>[src]

type Item = Result<XmlEvent>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> !RefUnwindSafe for Events<R>

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

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

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

impl<R> !UnwindSafe for Events<R>

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.