pub struct CellGrid {
pub nx: i32,
pub ny: i32,
pub nz: i32,
pub bin_width: [f64; 3],
pub weight: Vec<u64>,
}Expand description
Fractional bins and the point count in each bin.
Fields§
§nx: i32Bins along the first lattice axis.
ny: i32Bins along the second lattice axis.
nz: i32Bins along the third lattice axis.
bin_width: [f64; 3]Perpendicular width of one bin on each axis.
weight: Vec<u64>Point count of cell ((iz * ny) + iy) * nx + ix.
Implementations§
Trait Implementations§
impl StructuralPartialEq for CellGrid
Auto Trait Implementations§
impl Freeze for CellGrid
impl RefUnwindSafe for CellGrid
impl Send for CellGrid
impl Sync for CellGrid
impl Unpin for CellGrid
impl UnsafeUnpin for CellGrid
impl UnwindSafe for CellGrid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more