Struct serde_xml_rs::EventReader[][src]

pub struct EventReader<R> where
    R: Read
{ /* fields omitted */ }
Expand description

A wrapper around an std::io::Read instance which provides pull-based XML parsing.

Implementations

Creates a new reader, consuming the given stream.

Creates a new reader with the provded configuration, consuming the given stream.

Pulls and returns next XML event from the stream.

If returned event is XmlEvent::Error or XmlEvent::EndDocument, then further calls to this method will return this event again.

Unwraps this EventReader, returning the underlying reader.

Note that this operation is destructive; unwrapping the reader and wrapping it again with EventReader::new() will create a fresh reader which will attempt to parse an XML document from the beginning.

A convenience method to create an XmlReader from a string slice.

Trait Implementations

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Returns the position of the last event produced by the reader.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.