[][src]Struct reader_for_microxml::ReaderForMicroXml

pub struct ReaderForMicroXml<'a> { /* fields omitted */ }

struct Reader for MicroXml - the Class
Rust has Structs + Traits, but for me it is just like Class/Object.
Just without inheritance.
All the fields are internal and not public.
The only way to interact is through methods.

Implementations

impl<'a> ReaderForMicroXml<'a>[src]

pub fn new(input: &str) -> ReaderForMicroXml<'_>

Notable traits for ReaderForMicroXml<'a>

impl<'a> Iterator for ReaderForMicroXml<'a> type Item = Result<Token<'a>, &'static str>;
[src]

Constructor. String is immutably borrowed here. No allocation.

Trait Implementations

impl<'a> Iterator for ReaderForMicroXml<'a>[src]

type Item = Result<Token<'a>, &'static str>

The type of the elements being iterated over.

pub fn next(&mut self) -> Option<Result<Token<'a>, &'static str>>[src]

Reads the next token: StartElement, Attribute, Text, EndElement

Auto Trait Implementations

impl<'a> Send for ReaderForMicroXml<'a>[src]

impl<'a> Sync for ReaderForMicroXml<'a>[src]

impl<'a> Unpin for ReaderForMicroXml<'a>[src]

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.