pub struct Chain {
pub id: char,
pub residues: Vec<Residue>,
/* private fields */
}Expand description
A polypeptide or polynucleotide chain.
Fields§
§id: charSingle-character chain identifier.
residues: Vec<Residue>Residues in this chain, in sequence order.
Implementations§
Source§impl Chain
impl Chain
Sourcepub fn residue_count(&self) -> usize
pub fn residue_count(&self) -> usize
Number of residues.
Sourcepub fn atom_count(&self) -> usize
pub fn atom_count(&self) -> usize
Total number of atoms across all residues.
Sourcepub fn alpha_carbons(&self) -> Vec<&Atom>
pub fn alpha_carbons(&self) -> Vec<&Atom>
Collect all alpha carbon atoms in this chain.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chain
impl RefUnwindSafe for Chain
impl Send for Chain
impl Sync for Chain
impl Unpin for Chain
impl UnsafeUnpin for Chain
impl UnwindSafe for Chain
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