pub struct H5mdArrays {Show 13 fields
pub n_frames: usize,
pub natoms: usize,
pub positions: Vec<f64>,
pub edges: Vec<f64>,
pub species_z: Vec<i32>,
pub forces: Option<Vec<f64>>,
pub velocities: Option<Vec<f64>>,
pub velocity_unit: String,
pub boundary: [String; 3],
pub times: Vec<f64>,
pub time_unit: String,
pub length_unit: String,
pub force_unit: String,
}Expand description
Time-dependent cooked trajectory for one traj_id.
Fields§
§n_frames: usize§natoms: usize§positions: Vec<f64>[T][N][3] row-major f64.
edges: Vec<f64>[T][3][3] H5MD box/edges (lattice vectors, or boxl+angles).
species_z: Vec<i32>Integer Z, length N.
forces: Option<Vec<f64>>[T][N][3] if any frame has forces; frames without forces are zeros.
velocities: Option<Vec<f64>>[T][N][3] if any frame has velocities; frames without are zeros.
velocity_unit: String§boundary: [String; 3]H5MD box boundary strings, from CON pbc (periodic when absent).
times: Vec<f64>[T] times in [H5MD_TIME_ATTR] (CON time or i * timestep, else frame index).
time_unit: String§length_unit: String§force_unit: StringTrait Implementations§
Source§impl Clone for H5mdArrays
impl Clone for H5mdArrays
Source§fn clone(&self) -> H5mdArrays
fn clone(&self) -> H5mdArrays
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for H5mdArrays
impl RefUnwindSafe for H5mdArrays
impl Send for H5mdArrays
impl Sync for H5mdArrays
impl Unpin for H5mdArrays
impl UnsafeUnpin for H5mdArrays
impl UnwindSafe for H5mdArrays
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