pub struct ConBinMap {
pub map: MmapMut,
pub header: ConBinHeader,
pub payload_off: usize,
}Expand description
A mapped CON-bin. The position run and the velocity run are the file.
Fields§
§map: MmapMutMAP_PRIVATE copy-on-write (MmapOptions::map_copy). A store copies
the page and does not write the file.
header: ConBinHeader§payload_off: usizeImplementations§
Source§impl ConBinMap
impl ConBinMap
pub fn positions_f64(&self) -> Result<&[f64], ParseError>
pub fn positions_f64_mut(&mut self) -> Result<&mut [f64], ParseError>
pub fn velocities_f64(&self) -> Result<&[f64], ParseError>
pub fn positions_f32(&self) -> Result<&[f32], ParseError>
pub fn velocities_f32(&self) -> Result<&[f32], ParseError>
pub fn masses_f64(&self) -> Result<Option<&[f64]>, ParseError>
Sourcepub fn cell_f64(&self) -> Result<Option<&[f64]>, ParseError>
pub fn cell_f64(&self) -> Result<Option<&[f64]>, ParseError>
The (frames, 6) cell column of a binary64 file, a b c alpha beta gamma per frame, or None when the file has none or is binary32.
§Errors
ParseError::NonFiniteValue naming the field (cell[i]) and the
frame when the column holds a NaN or an infinity.
pub fn atom_ids(&self) -> Result<Option<&[u64]>, ParseError>
pub fn fixed_masks(&self) -> Result<Option<&[u8]>, ParseError>
Auto Trait Implementations§
impl Forget for ConBinMap
impl Freeze for ConBinMap
impl Move for ConBinMap
impl RefUnwindSafe for ConBinMap
impl Send for ConBinMapwhere
MmapInner: Send,
impl Sync for ConBinMapwhere
MmapInner: Sync,
impl Unpin for ConBinMap
impl UnsafeUnpin for ConBinMap
impl UnwindSafe for ConBinMap
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