pub enum ReadsPaired<D> {
Empty,
Unpaired {
reads: Reads<D>,
},
Paired {
paired1: Reads<D>,
paired2: Reads<D>,
},
Combined {
paired1: Reads<D>,
paired2: Reads<D>,
unpaired: Reads<D>,
},
}Variants§
Implementations§
Source§impl<D: Clone + Copy> ReadsPaired<D>
impl<D: Clone + Copy> ReadsPaired<D>
Sourcepub fn iterable(&self) -> Vec<&Reads<D>>
pub fn iterable(&self) -> Vec<&Reads<D>>
return an iterable element (Vec) with all contained Reads
Sourcepub fn n_read_pairs(&self) -> usize
pub fn n_read_pairs(&self) -> usize
the number of paired reads
Sourcepub fn n_unpaired_reads(&self) -> usize
pub fn n_unpaired_reads(&self) -> usize
the number of unpaired reads
Sourcepub fn get_read(&self, i: usize) -> Option<Read<D>>
pub fn get_read(&self, i: usize) -> Option<Read<D>>
get the read with the index i from the ReadsPaired - with multiple
underlying Reads its is counted linearly trough paired1, paired2, unpaired
pub fn get_paired_read(&self, i: usize) -> Option<PairedRead<D>>
pub fn mem(&self) -> usize
Sourcepub fn from_reads(
(paired1, paired2, unpaired): (Reads<D>, Reads<D>, Reads<D>),
) -> Self
pub fn from_reads( (paired1, paired2, unpaired): (Reads<D>, Reads<D>, Reads<D>), ) -> Self
pub fn iter(&self) -> Box<dyn Iterator<Item = Read<D>> + '_>
pub fn iter_partial( &self, range: Range<usize>, ) -> Box<dyn Iterator<Item = Read<D>> + '_>
Trait Implementations§
Source§impl<D: Clone> Clone for ReadsPaired<D>
impl<D: Clone> Clone for ReadsPaired<D>
Source§fn clone(&self) -> ReadsPaired<D>
fn clone(&self) -> ReadsPaired<D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<D: Debug> Debug for ReadsPaired<D>
impl<D: Debug> Debug for ReadsPaired<D>
Source§impl<'de, D> Deserialize<'de> for ReadsPaired<D>where
D: Deserialize<'de>,
impl<'de, D> Deserialize<'de> for ReadsPaired<D>where
D: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<D: Hash> Hash for ReadsPaired<D>
impl<D: Hash> Hash for ReadsPaired<D>
Source§impl<D: Ord> Ord for ReadsPaired<D>
impl<D: Ord> Ord for ReadsPaired<D>
Source§fn cmp(&self, other: &ReadsPaired<D>) -> Ordering
fn cmp(&self, other: &ReadsPaired<D>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<D: PartialEq> PartialEq for ReadsPaired<D>
impl<D: PartialEq> PartialEq for ReadsPaired<D>
Source§impl<D: PartialOrd> PartialOrd for ReadsPaired<D>
impl<D: PartialOrd> PartialOrd for ReadsPaired<D>
Source§impl<D> Serialize for ReadsPaired<D>where
D: Serialize,
impl<D> Serialize for ReadsPaired<D>where
D: Serialize,
impl<D: Eq> Eq for ReadsPaired<D>
impl<D> StructuralPartialEq for ReadsPaired<D>
Auto Trait Implementations§
impl<D> Freeze for ReadsPaired<D>
impl<D> RefUnwindSafe for ReadsPaired<D>where
D: RefUnwindSafe,
impl<D> Send for ReadsPaired<D>where
D: Send,
impl<D> Sync for ReadsPaired<D>where
D: Sync,
impl<D> Unpin for ReadsPaired<D>where
D: Unpin,
impl<D> UnsafeUnpin for ReadsPaired<D>
impl<D> UnwindSafe for ReadsPaired<D>where
D: UnwindSafe,
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.