pub struct AsciiSeqVec {
pub seq: Vec<u8>,
}
Expand description
A Vec<u8>
representing an ASCII-encoded DNA sequence of ACGTacgt
.
Other characters will be mapped into [0, 4)
via (c>>1)&3
, or may cause panics.
Fields§
§seq: Vec<u8>
Implementations§
Trait Implementations§
Source§impl Clone for AsciiSeqVec
impl Clone for AsciiSeqVec
Source§fn clone(&self) -> AsciiSeqVec
fn clone(&self) -> AsciiSeqVec
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 Debug for AsciiSeqVec
impl Debug for AsciiSeqVec
Source§impl Default for AsciiSeqVec
impl Default for AsciiSeqVec
Source§fn default() -> AsciiSeqVec
fn default() -> AsciiSeqVec
Returns the “default value” for a type. Read more
Source§impl MemDbgImpl for AsciiSeqVec
impl MemDbgImpl for AsciiSeqVec
fn _mem_dbg_rec_on( &self, _memdbg_writer: &mut impl Write, _memdbg_total_size: usize, _memdbg_max_depth: usize, _memdbg_prefix: &mut String, _memdbg_is_last: bool, _memdbg_flags: DbgFlags, ) -> Result
fn _mem_dbg_depth_on( &self, writer: &mut impl Write, total_size: usize, max_depth: usize, prefix: &mut String, field_name: Option<&str>, is_last: bool, padded_size: usize, flags: DbgFlags, ) -> Result<(), Error>
Source§impl MemSize for AsciiSeqVec
impl MemSize for AsciiSeqVec
Source§impl SeqVec for AsciiSeqVec
impl SeqVec for AsciiSeqVec
type Seq<'s> = AsciiSeq<'s>
Source§fn as_slice(&self) -> Self::Seq<'_>
fn as_slice(&self) -> Self::Seq<'_>
Get a non-owning slice to the underlying sequence. Read more
Source§fn push_seq(&mut self, seq: AsciiSeq<'_>) -> Range<usize>
fn push_seq(&mut self, seq: AsciiSeq<'_>) -> Range<usize>
Append the given sequence to the underlying storage. Read more
Source§fn push_ascii(&mut self, seq: &[u8]) -> Range<usize>
fn push_ascii(&mut self, seq: &[u8]) -> Range<usize>
Append the given ASCII sequence to the underlying storage. Read more
Source§fn slice(&self, range: Range<usize>) -> Self::Seq<'_>
fn slice(&self, range: Range<usize>) -> Self::Seq<'_>
Get a sub-slice of the sequence. Indices are character offsets.
Source§fn read_revcomp_kmer_u128(&self, k: usize, pos: usize) -> u128
fn read_revcomp_kmer_u128(&self, k: usize, pos: usize) -> u128
Extract a k-mer from this sequence.
Source§fn from_ascii(seq: &[u8]) -> Self
fn from_ascii(seq: &[u8]) -> Self
Create a
SeqVec
from ASCII input.Auto Trait Implementations§
impl Freeze for AsciiSeqVec
impl RefUnwindSafe for AsciiSeqVec
impl Send for AsciiSeqVec
impl Sync for AsciiSeqVec
impl Unpin for AsciiSeqVec
impl UnwindSafe for AsciiSeqVec
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,
Source§impl<T> MemDbg for Twhere
T: MemDbgImpl,
impl<T> MemDbg for Twhere
T: MemDbgImpl,
Source§fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg(&self, flags: DbgFlags) -> Result<(), Error>
Writes to stderr debug infos about the structure memory usage, expanding
all levels of nested structures.
Source§fn mem_dbg_on(
&self,
writer: &mut impl Write,
flags: DbgFlags,
) -> Result<(), Error>
fn mem_dbg_on( &self, writer: &mut impl Write, flags: DbgFlags, ) -> Result<(), Error>
Writes to a
core::fmt::Write
debug infos about the structure memory
usage, expanding all levels of nested structures.Source§fn mem_dbg_depth(&self, max_depth: usize, flags: DbgFlags) -> Result<(), Error>
fn mem_dbg_depth(&self, max_depth: usize, flags: DbgFlags) -> Result<(), Error>
Writes to stderr debug infos about the structure memory usage as
mem_dbg
, but expanding only up to max_depth
levels of nested structures.Source§fn mem_dbg_depth_on(
&self,
writer: &mut impl Write,
max_depth: usize,
flags: DbgFlags,
) -> Result<(), Error>
fn mem_dbg_depth_on( &self, writer: &mut impl Write, max_depth: usize, flags: DbgFlags, ) -> Result<(), Error>
Writes to a
core::fmt::Write
debug infos about the structure memory
usage as mem_dbg_on
, but expanding only up to
max_depth
levels of nested structures.