pub struct ConTrajectory { /* private fields */ }Expand description
The contents of one file and its checked FrameIndex, kept for
repeated reads by frame number.
Uncompressed input reuses path.rcidx when it matches the file and
scans otherwise; write_index writes a fresh scan back. gzip and zstd
input is decompressed once and indexed in memory only, with no sidecar.
Implementations§
Source§impl ConTrajectory
impl ConTrajectory
Sourcepub fn open(path: &Path, write_index: bool) -> Result<Self, Box<dyn Error>>
pub fn open(path: &Path, write_index: bool) -> Result<Self, Box<dyn Error>>
Read path once, check it as UTF-8 and load or scan its index.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn frame(&self, i: usize) -> Result<ConFrame, ParseError>
pub fn frame(&self, i: usize) -> Result<ConFrame, ParseError>
Parse frame i. An index past the end is
ParseError::IndexOutOfBounds.
Auto Trait Implementations§
impl Freeze for ConTrajectory
impl RefUnwindSafe for ConTrajectory
impl Send for ConTrajectory
impl Sync for ConTrajectory
impl Unpin for ConTrajectory
impl UnsafeUnpin for ConTrajectory
impl UnwindSafe for ConTrajectory
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