pub fn mode(self, mode: OpenMode) -> TrajectoryBuilder<'a> {
        TrajectoryBuilder {
            mode: mode,
            format: self.format,
        }
    }
/// Use a specific `mode` when opening a file.
///
/// # Examples
///
/// ```no_run
/// # use lumol_core::sys::{TrajectoryBuilder, OpenMode};
/// let trajectory = TrajectoryBuilder::new()
///     .mode(OpenMode::Write)
///     .open("file.nc")
///     .unwrap();
/// ```
Use a specific `mode` when opening a file.
Use a specific ` mode ` when opening a file .
pub fn mode(self, mode: OpenMode) -> TrajectoryBuilder<'a> {
        TrajectoryBuilder {
            mode: mode,
            format: self.format,
        }
    }
pub fn mode ( self , mode : OpenMode ) -> TrajectoryBuilder < ' a > { TrajectoryBuilder { mode : mode , format : self . format , } }
Use a specific `mode` when opening a file.
Use a specific ` mode ` when opening a file .
self
mode
OpenMode
examples
None
use lumol_core::sys::{trajectorybuilder, openmode};
let trajectory = TrajectoryBuilder::new()
.mode(OpenMode::Write)
.open("file.nc")
.unwrap();
```
let trajectory = TrajectoryBuilder :: new () . mode ( OpenMode :: Write ) . open ( " file . nc " ) . unwrap () ; ` ` `