pub struct Residue { /* private fields */ }Expand description
A single residue symbol with a descriptive kind.
Implementations§
Source§impl Residue
impl Residue
Sourcepub const fn new(symbol: char, kind: ResidueKind) -> Residue
pub const fn new(symbol: char, kind: ResidueKind) -> Residue
Creates a residue from a symbol and kind.
Sourcepub const fn ambiguous(symbol: char) -> Residue
pub const fn ambiguous(symbol: char) -> Residue
Creates an ambiguous residue with the supplied symbol.
Sourcepub const fn symbol(&self) -> ResidueSymbol
pub const fn symbol(&self) -> ResidueSymbol
Returns the residue symbol.
Sourcepub const fn kind(&self) -> &ResidueKind
pub const fn kind(&self) -> &ResidueKind
Returns the descriptive residue kind.
Trait Implementations§
impl Eq for Residue
impl StructuralPartialEq for Residue
Auto Trait Implementations§
impl Freeze for Residue
impl RefUnwindSafe for Residue
impl Send for Residue
impl Sync for Residue
impl Unpin for Residue
impl UnsafeUnpin for Residue
impl UnwindSafe for Residue
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