pub enum ResidueKind {
Nucleotide,
AminoAcid,
Gap,
Ambiguous,
Unknown,
Custom(String),
}Expand description
A descriptive kind for a biological residue.
Variants§
Nucleotide
Nucleotide residue.
AminoAcid
Amino-acid residue.
Gap
Gap residue, commonly represented as -.
Ambiguous
Ambiguous residue symbol.
Unknown
Unknown residue kind.
Custom(String)
Domain-specific residue kind.
Trait Implementations§
Source§impl Clone for ResidueKind
impl Clone for ResidueKind
Source§fn clone(&self) -> ResidueKind
fn clone(&self) -> ResidueKind
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 ResidueKind
impl Debug for ResidueKind
Source§impl Display for ResidueKind
impl Display for ResidueKind
Source§impl FromStr for ResidueKind
impl FromStr for ResidueKind
Source§type Err = Infallible
type Err = Infallible
The associated error which can be returned from parsing.
Source§fn from_str(value: &str) -> Result<ResidueKind, <ResidueKind as FromStr>::Err>
fn from_str(value: &str) -> Result<ResidueKind, <ResidueKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for ResidueKind
impl Hash for ResidueKind
Source§impl Ord for ResidueKind
impl Ord for ResidueKind
Source§fn cmp(&self, other: &ResidueKind) -> Ordering
fn cmp(&self, other: &ResidueKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResidueKind
impl PartialEq for ResidueKind
Source§impl PartialOrd for ResidueKind
impl PartialOrd for ResidueKind
impl Eq for ResidueKind
impl StructuralPartialEq for ResidueKind
Auto Trait Implementations§
impl Freeze for ResidueKind
impl RefUnwindSafe for ResidueKind
impl Send for ResidueKind
impl Sync for ResidueKind
impl Unpin for ResidueKind
impl UnsafeUnpin for ResidueKind
impl UnwindSafe for ResidueKind
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