[][src]Struct fastobo::parser::FrameReader

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

An iterator reading entity frames contained in an OBO stream.

Methods

impl<B: BufRead> FrameReader<B>[src]

pub fn new(stream: B) -> Result<Self, Error>[src]

Create a new FrameReader 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.

pub fn header(&self) -> &HeaderFrame[src]

Get a reference to the parsed header frame.

pub fn header_mut(&mut self) -> &mut HeaderFrame[src]

Get a mutable reference to the parsed header frame.

Trait Implementations

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

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

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

type Item = Result<EntityFrame, Error>

The type of the elements being iterated over.

impl TryFrom<File> for FrameReader<BufReader<File>>[src]

type Error = Error

The type returned in the event of a conversion error.

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

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

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

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

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

impl<B> UnwindSafe for FrameReader<B> where
    B: UnwindSafe

impl<B> RefUnwindSafe for FrameReader<B> where
    B: RefUnwindSafe

Blanket Implementations

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> From<T> for T[src]

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]