pub struct Sequence<'a> { /* private fields */ }
Expand description
A BAM record sequence.
Implementations§
Source§impl<'a> Sequence<'a>
impl<'a> Sequence<'a>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of bases in the sequence.
This is not the length of the buffer.
Sourcepub fn split_at_checked(
&'a self,
mid: usize,
) -> Option<(Subsequence<'a>, Subsequence<'a>)>
pub fn split_at_checked( &'a self, mid: usize, ) -> Option<(Subsequence<'a>, Subsequence<'a>)>
Splits the sequence into two subsequences at the given index.
The left split contains bases from [0, mid)
; and the right, [mid, len)
. If mid
is
len
, this returnsNone
.
Trait Implementations§
Source§impl<'a> Sequence for Sequence<'a>
impl<'a> Sequence for Sequence<'a>
impl<'a> Eq for Sequence<'a>
impl<'a> StructuralPartialEq for Sequence<'a>
Auto Trait Implementations§
impl<'a> Freeze for Sequence<'a>
impl<'a> RefUnwindSafe for Sequence<'a>
impl<'a> Send for Sequence<'a>
impl<'a> Sync for Sequence<'a>
impl<'a> Unpin for Sequence<'a>
impl<'a> UnwindSafe for Sequence<'a>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.