Struct noodles_fasta::fai::Record
source · [−]pub struct Record { /* private fields */ }
Expand description
A FASTA index record.
Implementations
sourceimpl Record
impl Record
sourcepub fn new(
name: String,
len: u64,
offset: u64,
line_bases: u64,
line_width: u64
) -> Self
pub fn new(
name: String,
len: u64,
offset: u64,
line_bases: u64,
line_width: u64
) -> Self
Creates a FASTA index record.
sourcepub fn reference_sequence_name(&self) -> &str
👎 Deprecated since 0.3.0: Use name
instead.
pub fn reference_sequence_name(&self) -> &str
👎 Deprecated since 0.3.0:
Use name
instead.
Returns the reference sequence name.
sourcepub fn line_bases(&self) -> u64
pub fn line_bases(&self) -> u64
Returns the number of bases in a line.
sourcepub fn line_width(&self) -> u64
pub fn line_width(&self) -> u64
Returns the number of characters in a line.
Trait Implementations
impl Eq for Record
impl StructuralEq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcepub fn equivalent(&self, key: &K) -> bool
pub fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.