pub struct FastaIndex { /* private fields */ }Expand description
A .fai-style FASTA index.
Implementations§
Source§impl FastaIndex
impl FastaIndex
Sourcepub fn entries(&self) -> &[FastaIndexEntry]
pub fn entries(&self) -> &[FastaIndexEntry]
Return all index entries in FASTA order.
Sourcepub fn get(&self, name: &[u8]) -> Option<&FastaIndexEntry>
pub fn get(&self, name: &[u8]) -> Option<&FastaIndexEntry>
Find an entry by reference name bytes.
Sourcepub fn to_fai_string(&self) -> String
pub fn to_fai_string(&self) -> String
Render the standard five-column .fai representation.
Sourcepub fn from_fai_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_fai_bytes(bytes: &[u8]) -> Result<Self>
Parse a standard five-column .fai index from bytes.
Sourcepub fn from_fai_str(text: &str) -> Result<Self>
pub fn from_fai_str(text: &str) -> Result<Self>
Parse a standard five-column .fai index from UTF-8 text.
Sourcepub fn from_fai_read<R: Read>(reader: R) -> Result<Self>
pub fn from_fai_read<R: Read>(reader: R) -> Result<Self>
Parse a standard five-column .fai index from a reader.
Trait Implementations§
Source§impl Clone for FastaIndex
impl Clone for FastaIndex
Source§fn clone(&self) -> FastaIndex
fn clone(&self) -> FastaIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FastaIndex
impl Debug for FastaIndex
Source§impl Default for FastaIndex
impl Default for FastaIndex
Source§fn default() -> FastaIndex
fn default() -> FastaIndex
Returns the “default value” for a type. Read more
impl Eq for FastaIndex
Source§impl PartialEq for FastaIndex
impl PartialEq for FastaIndex
Source§fn eq(&self, other: &FastaIndex) -> bool
fn eq(&self, other: &FastaIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FastaIndex
Auto Trait Implementations§
impl Freeze for FastaIndex
impl RefUnwindSafe for FastaIndex
impl Send for FastaIndex
impl Sync for FastaIndex
impl Unpin for FastaIndex
impl UnsafeUnpin for FastaIndex
impl UnwindSafe for FastaIndex
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more