[][src]Struct trec_text::Parser

pub struct Parser<B> where
    B: Iterator<Item = Result<u8>>, 
{ /* fields omitted */ }

TREC Text format parser.

Methods

impl<R: Read> Parser<Bytes<R>>[src]

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

Consumes the reader and returns a new TREC Text parser starting at the beginning.

impl<B> Parser<B> where
    B: Iterator<Item = Result<u8>>, 
[src]

pub fn into_bytes(self) -> impl Iterator<Item = Result<u8>>[src]

Returns the underlying iterator of remaining bytes.

Trait Implementations

impl<B> Iterator for Parser<B> where
    B: Iterator<Item = Result<u8>>, 
[src]

type Item = Result<DocumentRecord>

The type of the elements being iterated over.

Auto Trait Implementations

impl<B> !RefUnwindSafe for Parser<B>

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

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

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

impl<B> !UnwindSafe for Parser<B>

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.