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

Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.