pub struct ChemfilesReadOpts {
pub start: usize,
pub step: usize,
pub stop: Option<usize>,
pub format: Option<String>,
pub topology: Option<PathBuf>,
pub topology_format: Option<String>,
pub guess_bonds: bool,
}Expand description
Options for a chemfiles trajectory read (read_step, topology file, stride).
Fields§
§start: usizeFirst step to keep (inclusive, 0-based). Maps to Trajectory::read_step.
step: usizeStride between kept steps. Must be >= 1.
stop: Option<usize>Exclusive end step. None means nsteps.
format: Option<String>Force a chemfiles format name ("XYZ", "PDB", "GRO", …).
Empty / None lets chemfiles guess from the path.
topology: Option<PathBuf>Optional topology file (Trajectory::set_topology_file).
topology_format: Option<String>Format for Self::topology (set_topology_with_format). Empty = guess.
guess_bonds: boolCall chemfiles guess_bonds when the frame has no topology bonds.
Implementations§
Trait Implementations§
Source§impl Clone for ChemfilesReadOpts
impl Clone for ChemfilesReadOpts
Source§fn clone(&self) -> ChemfilesReadOpts
fn clone(&self) -> ChemfilesReadOpts
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 moreSource§impl Debug for ChemfilesReadOpts
impl Debug for ChemfilesReadOpts
Auto Trait Implementations§
impl Freeze for ChemfilesReadOpts
impl RefUnwindSafe for ChemfilesReadOpts
impl Send for ChemfilesReadOpts
impl Sync for ChemfilesReadOpts
impl Unpin for ChemfilesReadOpts
impl UnsafeUnpin for ChemfilesReadOpts
impl UnwindSafe for ChemfilesReadOpts
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