Struct bio::io::fasta::Index[][src]

pub struct Index { /* fields omitted */ }

A FASTA index as created by SAMtools (.fai).

Implementations

impl Index[src]

pub fn new<R: Read>(fai: R) -> Result<Self>[src]

Open a FASTA index from a given io::Read instance.

pub fn from_file<P: AsRef<Path> + Debug>(path: &P) -> Result<Self>[src]

Open a FASTA index from a given file path.

pub fn with_fasta_file<P: AsRef<Path>>(fasta_path: &P) -> Result<Self>[src]

Open a FASTA index given the corresponding FASTA file path. That is, for ref.fasta we expect ref.fasta.fai.

pub fn sequences(&self) -> Vec<Sequence>[src]

Return a vector of sequences described in the index.

Trait Implementations

impl Clone for Index[src]

impl Debug for Index[src]

Auto Trait Implementations

impl RefUnwindSafe for Index

impl Send for Index

impl Sync for Index

impl Unpin for Index

impl UnwindSafe for Index

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> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,