pub struct Header {
pub version: String,
pub num_atoms: u32,
pub num_frames: u64,
pub time_step: f64,
pub pbc: [bool; 3],
pub full_frame_interval: u32,
pub simulation_metadata: SimulationMetadata,
pub atom_metadata: AtomMetadata,
pub compression_settings: CompressionSettings,
pub frame_index_offset: u64,
pub data_flags: u32,
}Expand description
File format header containing metadata about the trajectory
Fields§
§version: StringThe TACO format version
num_atoms: u32Number of atoms in the trajectory
num_frames: u64Total number of frames in the trajectory
time_step: f64Time step between frames in picoseconds
pbc: [bool; 3]Periodic boundary conditions along [x, y, z]
full_frame_interval: u32Interval between full (non-delta) frames
simulation_metadata: SimulationMetadataSimulation metadata (temperature, ensemble, etc.)
atom_metadata: AtomMetadataAtom-specific metadata (masses, names, elements, etc.)
compression_settings: CompressionSettingsCompression settings used for the trajectory
frame_index_offset: u64Offset to the start of the frame index table (in bytes)
data_flags: u32Flags indicating which data components are present Bit 0: Positions Bit 1: Velocities Bit 2: Forces Bit 3: Box dimensions Bits 4-31: Reserved for future use
Implementations§
Source§impl Header
impl Header
Sourcepub fn new(
num_atoms: u32,
time_step: f64,
simulation_metadata: SimulationMetadata,
atom_metadata: AtomMetadata,
compression_settings: CompressionSettings,
) -> Self
pub fn new( num_atoms: u32, time_step: f64, simulation_metadata: SimulationMetadata, atom_metadata: AtomMetadata, compression_settings: CompressionSettings, ) -> Self
Create a new header with default values
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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