pub struct Atom {
pub id: AtomSerial,
pub name: AtomName,
pub id1: char,
pub residue: Residue,
pub chain: char,
pub sequence_number: u32,
pub insertion_code: char,
pub coord: [f32; 3],
pub occupancy: f32,
pub temperature_factor: f32,
pub element: Element,
pub charge: i8,
}Expand description
Represents an atom in a structural model.
§Field
id: Unique identifier. No two atoms. No twoAtoms in the sameModelcan have the sameid.name: Atom name. This represents the exact “role” of an atom in a given residue.residue: TheResiduethis atom belongs to. This can be an amino acid, a nucleotide, water, or a custom molecule.chain: The chain identifiersequence_number: The position of this atom in the chaincoord: Cartesian coordinatesx, y, zoccupancy:temperature_factor:element: TheElementchaege: The charge on the atom
Fields§
§id: AtomSerial§name: AtomName§id1: char§residue: Residue§chain: char§sequence_number: u32§insertion_code: char§coord: [f32; 3]§occupancy: f32§temperature_factor: f32§element: Element§charge: i8Trait 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 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