pub struct Frame {
pub num_atoms: u32,
pub step: u32,
pub time: f32,
pub box_vector: [[f32; 3]; 3],
pub coords: Vec<[f32; 3]>,
}
Expand description
Representation of a single frame of an MD trajectory
Fields§
§num_atoms: u32
Number of atoms in the frame
step: u32
Trajectory step
time: f32
Time step
box_vector: [[f32; 3]; 3]
3x3 box vector
coords: Vec<[f32; 3]>
3D coordinates for N atoms where N is num_atoms
Implementations§
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 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