pub struct Frame {
pub x: Vec<f32>,
pub y: Vec<f32>,
pub z: Vec<f32>,
pub cell: Option<UnitCell>,
pub time: Option<f64>,
}Expand description
Single frame of coordinates — topology-free.
Stores Cartesian coordinates as parallel arrays (SoA layout). Optional
fields are None when not relevant (e.g. non-periodic systems have no
cell; single-structure files have no time).
Fields§
§x: Vec<f32>X coordinates (Å), one per atom.
y: Vec<f32>Y coordinates (Å), one per atom.
z: Vec<f32>Z coordinates (Å), one per atom.
cell: Option<UnitCell>Periodic box parameters, or None for non-periodic systems.
time: Option<f64>Simulation time in picoseconds, or None if not applicable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more