Enum umgap::dna::Nucleotide
source · pub enum Nucleotide {
A,
C,
G,
T,
N,
}
Expand description
A Deoxyribose nucleotide.
Variants§
Implementations§
source§impl Nucleotide
impl Nucleotide
sourcepub fn complement(&self) -> Self
pub fn complement(&self) -> Self
Complement of the given nucleotide.
Trait Implementations§
source§impl Clone for Nucleotide
impl Clone for Nucleotide
source§fn clone(&self) -> Nucleotide
fn clone(&self) -> Nucleotide
Returns a copy 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 Nucleotide
impl Debug for Nucleotide
source§impl<'a> From<&'a u8> for Nucleotide
impl<'a> From<&'a u8> for Nucleotide
source§impl From<Nucleotide> for u8
impl From<Nucleotide> for u8
source§fn from(n: Nucleotide) -> u8
fn from(n: Nucleotide) -> u8
Converts to this type from the input type.
source§impl From<u8> for Nucleotide
impl From<u8> for Nucleotide
source§impl Hash for Nucleotide
impl Hash for Nucleotide
source§impl PartialEq for Nucleotide
impl PartialEq for Nucleotide
source§fn eq(&self, other: &Nucleotide) -> bool
fn eq(&self, other: &Nucleotide) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Nucleotide
impl Eq for Nucleotide
impl StructuralPartialEq for Nucleotide
Auto Trait Implementations§
impl RefUnwindSafe for Nucleotide
impl Send for Nucleotide
impl Sync for Nucleotide
impl Unpin for Nucleotide
impl UnwindSafe for Nucleotide
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