pub struct AminoAcidCode(/* private fields */);Expand description
A validated one-letter amino-acid code.
Implementations§
Source§impl AminoAcidCode
impl AminoAcidCode
Sourcepub fn new(symbol: char) -> Result<Self, AminoAcidParseError>
pub fn new(symbol: char) -> Result<Self, AminoAcidParseError>
Creates a one-letter amino-acid code from a recognized symbol.
§Errors
Returns AminoAcidParseError::InvalidSymbol for unrecognized symbols.
Trait Implementations§
Source§impl Clone for AminoAcidCode
impl Clone for AminoAcidCode
Source§fn clone(&self) -> AminoAcidCode
fn clone(&self) -> AminoAcidCode
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 AminoAcidCode
impl Debug for AminoAcidCode
Source§impl Display for AminoAcidCode
impl Display for AminoAcidCode
Source§impl Hash for AminoAcidCode
impl Hash for AminoAcidCode
Source§impl Ord for AminoAcidCode
impl Ord for AminoAcidCode
Source§fn cmp(&self, other: &AminoAcidCode) -> Ordering
fn cmp(&self, other: &AminoAcidCode) -> 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 AminoAcidCode
impl PartialEq for AminoAcidCode
Source§impl PartialOrd for AminoAcidCode
impl PartialOrd for AminoAcidCode
impl Copy for AminoAcidCode
impl Eq for AminoAcidCode
impl StructuralPartialEq for AminoAcidCode
Auto Trait Implementations§
impl Freeze for AminoAcidCode
impl RefUnwindSafe for AminoAcidCode
impl Send for AminoAcidCode
impl Sync for AminoAcidCode
impl Unpin for AminoAcidCode
impl UnsafeUnpin for AminoAcidCode
impl UnwindSafe for AminoAcidCode
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