pub struct Writer { /* private fields */ }Expand description
Writer for TACO trajectory files
Implementations§
Source§impl Writer
impl Writer
Sourcepub fn create<P: AsRef<Path>>(
path: P,
num_atoms: u32,
time_step: f64,
simulation_metadata: SimulationMetadata,
atom_metadata: AtomMetadata,
compression_settings: CompressionSettings,
) -> Result<Self>
pub fn create<P: AsRef<Path>>( path: P, num_atoms: u32, time_step: f64, simulation_metadata: SimulationMetadata, atom_metadata: AtomMetadata, compression_settings: CompressionSettings, ) -> Result<Self>
Create a new TACO writer
Sourcepub fn create_with_header<P: AsRef<Path>>(
path: P,
header: Header,
) -> Result<Self>
pub fn create_with_header<P: AsRef<Path>>( path: P, header: Header, ) -> Result<Self>
Create a new TACO writer with a custom header
Sourcepub fn write_frame(&mut self, frame: Frame) -> Result<()>
pub fn write_frame(&mut self, frame: Frame) -> Result<()>
Write a single frame
Auto Trait Implementations§
impl Freeze for Writer
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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