[][src]Struct rapid_xml::tree::TreeDeserializer

pub struct TreeDeserializer<R: Read, N> { /* fields omitted */ }

Deserializer for a sequence of elements in a tree.

See xml_path macro for easy way of constructing the path.

TreeDeserializer is an Iterator over the deserialized elements. If the xml path deserializes exactly one type, the iterator will yield that type. If the xml path deserializes multiple types (nested in a XML tree), the iterator will yield tuple of those types.

TODO: Example

Implementations

impl<R: Read, N: XmlPath> TreeDeserializer<R, N>[src]

pub fn from_path(path: N, parser: Parser<R>) -> Self[src]

Create new TreeDeserializer from given Parser.

pub fn from_path_and_reader(path: N, reader: R) -> Self[src]

Create new TreeDeserializer from given IO Read.

impl<R: Read, N: XmlPath + Default> TreeDeserializer<R, N>[src]

pub fn new(parser: Parser<R>) -> Self[src]

Create new TreeDeserializer from given Parser.

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

Create new TreeDeserializer from given IO Read.

Trait Implementations

impl<R: Read, N: XmlPath> Iterator for TreeDeserializer<R, N> where
    N::Output: DeTuple
[src]

type Item = Result<<N::Output as DeTuple>::Output, DeserializeError>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R, N> RefUnwindSafe for TreeDeserializer<R, N> where
    N: RefUnwindSafe,
    R: RefUnwindSafe

impl<R, N> Send for TreeDeserializer<R, N> where
    N: Send,
    R: Send

impl<R, N> Sync for TreeDeserializer<R, N> where
    N: Sync,
    R: Sync

impl<R, N> Unpin for TreeDeserializer<R, N> where
    N: Unpin,
    R: Unpin

impl<R, N> UnwindSafe for TreeDeserializer<R, N> where
    N: UnwindSafe,
    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<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.