#[repr(u8)]pub enum Nuc {
A = 0,
C = 1,
G = 2,
T = 3,
N = 4,
}Expand description
A nucleotide (A, C, G, T, or N)
Variants§
Implementations§
Source§impl Nuc
impl Nuc
Sourcepub const MAX_PACKED: u8 = 0x3F
pub const MAX_PACKED: u8 = 0x3F
Maximum valid value for packed nucleotides
Sourcepub fn from_ascii(b: u8) -> Option<Nuc>
pub fn from_ascii(b: u8) -> Option<Nuc>
Convert from ASCII byte
IUPAC ambiguous codes (R, Y, M, K, S, W, H, B, V, D) are converted to N. Lowercase versions are also accepted.
Sourcepub fn complement(self) -> Nuc
pub fn complement(self) -> Nuc
Get complement nucleotide
Trait Implementations§
impl Copy for Nuc
impl Eq for Nuc
impl StructuralPartialEq for Nuc
Auto Trait Implementations§
impl Freeze for Nuc
impl RefUnwindSafe for Nuc
impl Send for Nuc
impl Sync for Nuc
impl Unpin for Nuc
impl UnsafeUnpin for Nuc
impl UnwindSafe for Nuc
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