pub struct Structure {
pub id: String,
pub chains: Vec<Chain>,
}Expand description
A complete macromolecular structure (one or more chains).
Fields§
§id: StringPDB identifier or user-supplied name.
chains: Vec<Chain>Chains in this structure.
Implementations§
Source§impl Structure
impl Structure
Sourcepub fn chain_count(&self) -> usize
pub fn chain_count(&self) -> usize
Number of chains.
Sourcepub fn residue_count(&self) -> usize
pub fn residue_count(&self) -> usize
Total residues across all chains.
Sourcepub fn atom_count(&self) -> usize
pub fn atom_count(&self) -> usize
Total atoms across all chains.
Sourcepub fn alpha_carbons(&self) -> Vec<&Atom>
pub fn alpha_carbons(&self) -> Vec<&Atom>
Collect all alpha carbon atoms across all chains.
Sourcepub fn center_of_mass(&self) -> Point3D
pub fn center_of_mass(&self) -> Point3D
Geometric center of mass of all atoms.
Trait Implementations§
Source§impl ContentAddressable for Structure
impl ContentAddressable for Structure
Source§fn content_hash(&self) -> String
fn content_hash(&self) -> String
Return the content hash as a hex string (e.g. SHA-256).
Auto Trait Implementations§
impl Freeze for Structure
impl RefUnwindSafe for Structure
impl Send for Structure
impl Sync for Structure
impl Unpin for Structure
impl UnsafeUnpin for Structure
impl UnwindSafe for Structure
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