Skip to main content

CoordColumns

Struct CoordColumns 

Source
pub struct CoordColumns {
    pub block: PositionBlock,
    pub masses: Vec<f64>,
    pub cells: Vec<f64>,
    pub atom_ids: Vec<u64>,
    pub fixed: Vec<u8>,
    pub species: Vec<Vec<(String, usize)>>,
    pub has_section: bool,
    pub partial_fixed: bool,
}
Expand description

Masses and cell that belong with read_positions_with_threads.

The column walker fills these when it certifies the file. Otherwise they come from the frame parser, which is the same source as before.

Fields§

§block: PositionBlock§masses: Vec<f64>§cells: Vec<f64>§atom_ids: Vec<u64>

Column 5, file order, length n_frames * n_atoms when identity was read.

§fixed: Vec<u8>

Decoded column-4 bitmask, same length as atom_ids when identity was read.

§species: Vec<Vec<(String, usize)>>

One run-length element list when every frame matches, otherwise one per frame.

Each run is (symbol, count) in file order. An empty list means identity was not collected.

§has_section: bool§partial_fixed: bool

True when any atom is held on some axes and free on others.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.