[−][src]Struct debruijn::dna_string::DnaStringSlice
An immutable slice into a DnaString
Fields
dna_string: &'a DnaString
start: usize
length: usize
is_rc: bool
Methods
impl<'a> DnaStringSlice<'a>
[src]
pub fn is_palindrome(&self) -> bool
[src]
pub fn bytes(&self) -> Vec<u8>
[src]
pub fn ascii(&self) -> Vec<u8>
[src]
pub fn to_dna_string(&self) -> String
[src]
pub fn to_string(&self) -> String
[src]
pub fn to_owned(&self) -> DnaString
[src]
pub fn slice(&self, start: usize, end: usize) -> DnaStringSlice
[src]
Get slice containing the interval [start
, end
) of self
Trait Implementations
impl<'a> Mer for DnaStringSlice<'a>
[src]
fn len(&self) -> usize
[src]
fn get(&self, i: usize) -> u8
[src]
Get the base at position i
.
fn set_mut(&mut self, _: usize, _: u8)
[src]
Set the base as position i
.
fn set_slice_mut(&mut self, _: usize, _: usize, _: u64)
[src]
fn rc(&self) -> DnaStringSlice<'a>
[src]
ⓘImportant traits for MerIter<'a, M>fn iter<'a>(&'a self) -> MerIter<'a, Self>
[src]
Iterate over the bases in the sequence
impl<'a> Vmer for DnaStringSlice<'a>
[src]
fn new(_: usize) -> Self
[src]
fn max_len() -> usize
[src]
fn get_kmer<K: Kmer>(&self, pos: usize) -> K
[src]
Get the kmer starting at position pos
fn from_slice(seq: &[u8]) -> Self
[src]
Create a Vmer from a sequence of bytes
fn first_kmer<K: Kmer>(&self) -> K
[src]
Get the first Kmer from the sequence
fn last_kmer<K: Kmer>(&self) -> K
[src]
Get the last kmer in the sequence
fn both_term_kmer<K: Kmer>(&self) -> (K, K)
[src]
Get the terminal kmer of the sequence, on the both side of the sequence
fn term_kmer<K: Kmer>(&self, dir: Dir) -> K
[src]
Get the terminal kmer of the sequence, on the side of the sequence given by dir
ⓘImportant traits for KmerIter<'a, K, D>fn iter_kmers<K: Kmer>(&self) -> KmerIter<K, Self>
[src]
Iterate over the kmers in the sequence
ⓘImportant traits for KmerExtsIter<'a, K, D>fn iter_kmer_exts<K: Kmer>(&self, seq_exts: Exts) -> KmerExtsIter<K, Self>
[src]
Iterate over the kmers and their extensions, given the extensions of the whole sequence
impl<'a> PartialEq<DnaStringSlice<'a>> for DnaStringSlice<'a>
[src]
fn eq(&self, other: &DnaStringSlice) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl<'a> Clone for DnaStringSlice<'a>
[src]
fn clone(&self) -> DnaStringSlice<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> IntoIterator for &'a DnaStringSlice<'a>
[src]
type Item = u8
The type of the elements being iterated over.
type IntoIter = MerIter<'a, DnaStringSlice<'a>>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl<'a> Eq for DnaStringSlice<'a>
[src]
impl<'a> Debug for DnaStringSlice<'a>
[src]
Auto Trait Implementations
impl<'a> Send for DnaStringSlice<'a>
impl<'a> Sync for DnaStringSlice<'a>
Blanket Implementations
impl<T> MerImmut for T where
T: Mer + Clone,
[src]
T: Mer + Clone,
fn set(&self, pos: usize, val: u8) -> Self
[src]
fn set_slice(&self, pos: usize, nbases: usize, bits: u64) -> Self
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,