Struct noodles_fasta::reader::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A FASTA reader builder.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn set_fasta_index(self, index: Index) -> Self
pub fn set_fasta_index(self, index: Index) -> Self
Set the FASTA index.
sourcepub fn set_gz_index(self, index: Index) -> Self
pub fn set_gz_index(self, index: Index) -> Self
Sets the FASTA bgzip index.
sourcepub fn build_from_path<P>(self, src: P) -> Result<Reader<Source<File>>>where
P: AsRef<Path>,
pub fn build_from_path<P>(self, src: P) -> Result<Reader<Source<File>>>where
P: AsRef<Path>,
Builds a FASTA reader from a path.
If an associated FASTA index exists, it will be read.
sourcepub fn build_from_reader<R>(self, reader: R) -> Result<Reader<R>>where
R: BufRead,
pub fn build_from_reader<R>(self, reader: R) -> Result<Reader<R>>where
R: BufRead,
Builds a FASTA reader from a reader.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more