pub struct Atom {
pub serial: u32,
pub name: String,
pub alt_loc: Option<char>,
pub coords: Point3D,
pub occupancy: f64,
pub temp_factor: f64,
pub element: Option<String>,
pub charge: Option<i8>,
pub is_hetatm: bool,
}Expand description
A single atom in a macromolecular structure.
Fields§
§serial: u32Atom serial number.
name: StringAtom name (e.g. “CA”, “N”, “CB”).
alt_loc: Option<char>Alternate location indicator.
coords: Point3D3D coordinates in Angstroms.
occupancy: f64Occupancy factor.
temp_factor: f64Temperature factor (B-factor).
element: Option<String>Element symbol.
charge: Option<i8>Formal charge.
is_hetatm: boolWhether this is a HETATM record.
Implementations§
Source§impl Atom
impl Atom
Sourcepub fn is_backbone(&self) -> bool
pub fn is_backbone(&self) -> bool
Whether this atom is a backbone atom (N, CA, C, O).
Sourcepub fn is_alpha_carbon(&self) -> bool
pub fn is_alpha_carbon(&self) -> bool
Whether this is an alpha carbon.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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