[−][src]Enum aa_similarity::AminoAcid
One variant for each amino acid
let ala: AminoAcid = "Ala".parse().unwrap(); assert_eq!(ala, AminoAcid::Alanine); let tyr: AminoAcid = AminoAcid::try_from('Y').unwrap(); assert_eq!(tyr, AminoAcid::Tyrosine);
Variants
Trait Implementations
impl Clone for AminoAcid
[src]
impl Code for AminoAcid
[src]
pub fn single_letter(&self) -> char
[src]
pub fn three_letters(&self) -> String
[src]
pub fn write_single_letter(&self, writer: impl Write) -> Result<(), Error>
[src]
pub fn write_three_letters(&self, writer: impl Write) -> Result<(), Error>
[src]
impl Debug for AminoAcid
[src]
impl Display for AminoAcid
[src]
impl Eq for AminoAcid
[src]
impl FromStr for AminoAcid
[src]
type Err = ErrorKind
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<AminoAcid, <AminoAcid as FromStr>::Err>
[src]
impl Ord for AminoAcid
[src]
pub fn cmp(&self, other: &AminoAcid) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<AminoAcid> for AminoAcid
[src]
pub fn eq(&self, other: &AminoAcid) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<AminoAcid> for AminoAcid
[src]
pub fn partial_cmp(&self, other: &AminoAcid) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for AminoAcid
[src]
impl StructuralPartialEq for AminoAcid
[src]
impl TryFrom<char> for AminoAcid
[src]
Auto Trait Implementations
impl RefUnwindSafe for AminoAcid
impl Send for AminoAcid
impl Sync for AminoAcid
impl Unpin for AminoAcid
impl UnwindSafe for AminoAcid
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,