Struct gv100ad::parser::Parser[][src]

pub struct Parser<R> { /* fields omitted */ }

Parser for GV100AD files.

Implementations

impl Parser<BufReader<File>>[src]

pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]

Creates a new parser from a file path.

impl<R: BufRead> Parser<R>[src]

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

Creates a new parser from a BufRead.

pub fn parse_line(&mut self) -> Result<Option<Datensatz>, Error>[src]

Parses the next data record (i.e. line).

Returns Ok(None) if end of file is reached. Returns Err(_), if an error occured, otherwise returns Ok(Some(_)), if a record was successfully read.

Trait Implementations

impl<R: BufRead> Iterator for Parser<R>[src]

type Item = Result<Datensatz, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<R> RefUnwindSafe for Parser<R> where
    R: RefUnwindSafe

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

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

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

impl<R> UnwindSafe for Parser<R> where
    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> Instrument 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.