pub struct PdbAtom {
pub serial: u32,
pub name: String,
pub res_name: String,
pub chain_id: char,
pub res_seq: i32,
pub x: f64,
pub y: f64,
pub z: f64,
pub occupancy: f64,
pub temp_factor: f64,
pub element: String,
}Expand description
Data from a single ATOM or HETATM record in a PDB file.
Fields§
§serial: u32Atom serial number.
name: StringAtom name field (e.g., “CA”, “ N “, “OXT”).
res_name: StringResidue name (e.g., “ALA”).
chain_id: charChain identifier.
res_seq: i32Residue sequence number.
x: f64Cartesian X coordinate (angstroms).
y: f64Cartesian Y coordinate (angstroms).
z: f64Cartesian Z coordinate (angstroms).
occupancy: f64Occupancy factor.
temp_factor: f64Temperature factor (B-factor).
element: StringElement symbol (right-justified, 2 chars in PDB; stored trimmed here).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PdbAtom
impl RefUnwindSafe for PdbAtom
impl Send for PdbAtom
impl Sync for PdbAtom
impl Unpin for PdbAtom
impl UnsafeUnpin for PdbAtom
impl UnwindSafe for PdbAtom
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