[][src]Struct consprob::Reader

pub struct Reader<R> where
    R: Read
{ /* fields omitted */ }

A FASTA reader.

Implementations

impl Reader<File>[src]

pub fn from_file<P>(path: P) -> Result<Reader<File>, Error> where
    P: AsRef<Path>, 
[src]

Read FASTA from given file path.

impl<R> Reader<R> where
    R: Read
[src]

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

Create a new Fasta reader given an instance of io::Read.

pub fn read(&mut self, record: &mut Record) -> Result<(), Error>[src]

Read next FASTA record into the given Record.

pub fn records(self) -> Records<R>[src]

Return an iterator over the records of this Fasta file.

Trait Implementations

impl<R> Debug for Reader<R> where
    R: Read + Debug
[src]

Auto Trait Implementations

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

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

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

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

impl<R> UnwindSafe for Reader<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, U> Into<U> for T where
    U: From<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.