pub fn read(&mut self) -> Result<System, chemfiles::Error> {
        let mut frame = chemfiles::Frame::new();
        self.0.read(&mut frame)?;
        return Ok(frame.into());
    }
/// Read the next step of the trajectory
///
/// # Examples
///
/// ```no_run
/// # use lumol_core::sys::TrajectoryBuilder;
/// let mut trajectory = TrajectoryBuilder::new()
///     .open("file.nc")
///     .unwrap();
///
/// let system = trajectory.read().unwrap();
/// ```
Read the next step of the trajectory
Read the next step of the trajectory
pub fn read(&mut self) -> Result<System, chemfiles::Error> {
        let mut frame = chemfiles::Frame::new();
        self.0.read(&mut frame)?;
        return Ok(frame.into());
    }
pub fn read ( & mut self ) -> Result < System , chemfiles :: Error > { let mut frame = chemfiles :: Frame :: new ( ) ; self . 0 . read ( & mut frame ) ? ; return Ok ( frame . into ( ) ) ; }
Read the next step of the trajectory
Read the next step of the trajectory
&mut self
examples
None
use lumol_core::sys::trajectorybuilder;
let mut trajectory = TrajectoryBuilder::new()
.open("file.nc")
.unwrap().

let system = trajectory.read().unwrap();
```
let mut trajectory = TrajectoryBuilder :: new () . open ( " file . nc " ) . unwrap () . let system = trajectory . read () . unwrap () ; ` ` `