Struct fastobo::parser::SequentialParser[][src]

pub struct SequentialParser<B: BufRead> { /* fields omitted */ }

An iterator reading entity frames contained in an OBO stream sequentially.

Trait Implementations

impl<B: BufRead> AsMut<B> for SequentialParser<B>[src]

impl<B: BufRead> AsRef<B> for SequentialParser<B>[src]

impl<B: BufRead> From<B> for SequentialParser<B>[src]

impl From<File> for SequentialParser<BufReader<File>>[src]

impl<B: BufRead> Iterator for SequentialParser<B>[src]

type Item = Result<Frame, Error>

The type of the elements being iterated over.

impl<B: BufRead> Parser<B> for SequentialParser<B>[src]

fn new(stream: B) -> Self[src]

Create a new SequentialParser from the given stream.

The constructor will parse the header frame right away, and return an error if it fails. The header can then be accessed using the header method.

fn ordered(&mut self, _ordered: bool) -> &mut Self[src]

Make the parser yield frames in the order they appear in the document.

This has no effect on SequentialParser since the frames are always processed in the document order, but this method is provided for consistency of the FrameReader type.

fn into_inner(self) -> B[src]

Consume the reader and extract the internal reader.

impl<B: BufRead> TryFrom<&'_ mut SequentialParser<B>> for OboDoc[src]

type Error = Error

The type returned in the event of a conversion error.

impl<B: BufRead> TryFrom<SequentialParser<B>> for OboDoc[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<B> !RefUnwindSafe for SequentialParser<B>[src]

impl<B> Send for SequentialParser<B> where
    B: Send
[src]

impl<B> Sync for SequentialParser<B> where
    B: Sync
[src]

impl<B> Unpin for SequentialParser<B> where
    B: Unpin
[src]

impl<B> !UnwindSafe for SequentialParser<B>[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<!> for T[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.