pub struct Stats {
pub total: usize,
pub allocated: usize,
pub zeros: usize,
pub overhead: usize,
pub bytes_per_value: usize,
}
Expand description
Size-related statistics for a subgrid.
Fields
total: usize
Number of possible total entries for a subgrid. This number is the product of the lengths
of the slices returned by Subgrid::mu2_grid
, Subgrid::x1_grid
and
Subgrid::x2_grid
.
allocated: usize
Number of allocated entries for a subgrid. This number is always smaller or equal than
Self::total
.
zeros: usize
Number of allocated zero entries for a subgrid. This number is always smaller or equal than
Self::allocated
and contributes to Self::overhead
.
overhead: usize
The overhead of a Subgrid
is the size of internal data not used to store grid values.
bytes_per_value: usize
This value multiplied with any other member of this struct gives an approximate size in bytes.
Trait Implementations
impl Eq for Stats
impl StructuralEq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more