pub struct Ncbi8naBase(/* private fields */);
Expand description
Single byte base representation where each of 4 bits represents an unambiguous base.
count_zeros()
of each unambiguous base (ACGT) is 1; ambiguous bases are represented by setting
bits corresponding to each of the unambiguous bases that it may be (N = 0xf). Note that in
this representation 0 is invalid.
Trait Implementations§
Source§impl Clone for Ncbi8naBase
impl Clone for Ncbi8naBase
Source§fn clone(&self) -> Ncbi8naBase
fn clone(&self) -> Ncbi8naBase
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Ncbi8naBase
impl Debug for Ncbi8naBase
Source§impl Display for Ncbi8naBase
impl Display for Ncbi8naBase
Source§impl From<Blast8naBase> for Ncbi8naBase
impl From<Blast8naBase> for Ncbi8naBase
Source§fn from(value: Blast8naBase) -> Self
fn from(value: Blast8naBase) -> Self
Converts to this type from the input type.
Source§impl From<Ncbi2naBase> for Ncbi8naBase
impl From<Ncbi2naBase> for Ncbi8naBase
Source§fn from(value: Ncbi2naBase) -> Self
fn from(value: Ncbi2naBase) -> Self
Converts to this type from the input type.
Source§impl From<Ncbi8naBase> for Blast8naBase
impl From<Ncbi8naBase> for Blast8naBase
Source§fn from(value: Ncbi8naBase) -> Self
fn from(value: Ncbi8naBase) -> Self
Converts to this type from the input type.
Source§impl From<Ncbi8naBase> for char
impl From<Ncbi8naBase> for char
Source§fn from(value: Ncbi8naBase) -> Self
fn from(value: Ncbi8naBase) -> Self
Converts to this type from the input type.
Source§impl From<Ncbi8naBase> for u8
Convert Ncbi8na bases to IUPACNA format.
impl From<Ncbi8naBase> for u8
Convert Ncbi8na bases to IUPACNA format.
Source§fn from(value: Ncbi8naBase) -> Self
fn from(value: Ncbi8naBase) -> Self
Converts to this type from the input type.
Source§impl FromIterator<Ncbi8naBase> for NucleotideSequence
impl FromIterator<Ncbi8naBase> for NucleotideSequence
Source§fn from_iter<T>(into_iter: T) -> Selfwhere
T: IntoIterator<Item = Ncbi8naBase>,
fn from_iter<T>(into_iter: T) -> Selfwhere
T: IntoIterator<Item = Ncbi8naBase>,
Creates a value from an iterator. Read more
Source§impl PartialEq for Ncbi8naBase
impl PartialEq for Ncbi8naBase
Source§impl TryFrom<Ncbi8naBase> for Ncbi2naBase
impl TryFrom<Ncbi8naBase> for Ncbi2naBase
Source§type Error = NucleotideConversionError
type Error = NucleotideConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<u8> for Ncbi8naBase
Convert IUPACNA bases to Ncbi8na format.
impl TryFrom<u8> for Ncbi8naBase
Convert IUPACNA bases to Ncbi8na format.
impl Copy for Ncbi8naBase
impl Eq for Ncbi8naBase
impl StructuralPartialEq for Ncbi8naBase
Auto Trait Implementations§
impl Freeze for Ncbi8naBase
impl RefUnwindSafe for Ncbi8naBase
impl Send for Ncbi8naBase
impl Sync for Ncbi8naBase
impl Unpin for Ncbi8naBase
impl UnwindSafe for Ncbi8naBase
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