pub enum StandardResidue {
Show 31 variants
ALA,
ARG,
ASN,
ASP,
CYS,
GLN,
GLU,
GLY,
HIS,
ILE,
LEU,
LYS,
MET,
PHE,
PRO,
SER,
THR,
TRP,
TYR,
VAL,
A,
C,
G,
U,
I,
DA,
DC,
DG,
DT,
DI,
HOH,
}Expand description
Canonical polymer residue names recognized by bio-forge.
Variants cover the 20 standard amino acids, the common nucleic acid bases (both RNA and DNA prefixed forms), inosine, and crystallographic water. Helper methods report whether a residue belongs to protein or nucleic acid polymers so that operations can branch on biopolymer type.
Variants§
ALA
Alanine residue (ALA).
ARG
Arginine residue (ARG).
ASN
Asparagine residue (ASN).
ASP
Aspartate residue (ASP).
CYS
Cysteine residue (CYS).
GLN
Glutamine residue (GLN).
GLU
Glutamate residue (GLU).
GLY
Glycine residue (GLY).
HIS
Histidine residue (HIS).
ILE
Isoleucine residue (ILE).
LEU
Leucine residue (LEU).
LYS
Lysine residue (LYS).
MET
Methionine residue (MET).
PHE
Phenylalanine residue (PHE).
PRO
Proline residue (PRO).
SER
Serine residue (SER).
THR
Threonine residue (THR).
TRP
Tryptophan residue (TRP).
TYR
Tyrosine residue (TYR).
VAL
Valine residue (VAL).
A
Adenosine residue (A).
C
Cytidine residue (C).
G
Guanosine residue (G).
U
Uridine residue (U).
I
Inosine residue (I).
DA
Deoxyadenosine residue (DA).
DC
Deoxycytidine residue (DC).
DG
Deoxyguanosine residue (DG).
DT
Deoxythymidine residue (DT).
DI
Deoxyinosine residue (DI).
HOH
Water molecule (HOH).
Implementations§
Source§impl StandardResidue
Checks whether the residue belongs to the 20 canonical amino acids.
impl StandardResidue
Checks whether the residue belongs to the 20 canonical amino acids.
Used by cleaning and repair operations to decide when to apply protein-specific heuristics (rotamer fitting, backbone rules, etc.).
§Returns
true if the residue is part of the protein alphabet.
pub fn is_protein(self) -> bool
Sourcepub fn is_nucleic(self) -> bool
pub fn is_nucleic(self) -> bool
Checks whether the residue belongs to the standard nucleic acid alphabet.
Includes RNA (A, C, G, U, I) and DNA (DA, DC, DG, DT, DI) forms so
that sugar-phosphate handling can branch appropriately.
§Returns
true if the residue should be treated as a nucleotide.
Trait Implementations§
Source§impl Clone for StandardResidue
impl Clone for StandardResidue
Source§fn clone(&self) -> StandardResidue
fn clone(&self) -> StandardResidue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StandardResidue
impl Debug for StandardResidue
Source§impl<'de> Deserialize<'de> for StandardResidue
impl<'de> Deserialize<'de> for StandardResidue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for StandardResidue
impl Display for StandardResidue
Source§impl FromStr for StandardResidue
impl FromStr for StandardResidue
Source§impl Hash for StandardResidue
impl Hash for StandardResidue
Source§impl PartialEq for StandardResidue
impl PartialEq for StandardResidue
impl Copy for StandardResidue
impl Eq for StandardResidue
impl StructuralPartialEq for StandardResidue
Auto Trait Implementations§
impl Freeze for StandardResidue
impl RefUnwindSafe for StandardResidue
impl Send for StandardResidue
impl Sync for StandardResidue
impl Unpin for StandardResidue
impl UnwindSafe for StandardResidue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.