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: usizeNumber of possible total entries for a subgrid. This number is the product of the lengths
of the containers returned by Subgrid::node_values.
allocated: usizeNumber of allocated entries for a subgrid. This number is always smaller or equal than
Self::total.
zeros: usizeNumber of allocated zero entries for a subgrid. This number is always smaller or equal than
Self::allocated and contributes to Self::overhead.
overhead: usizeThe overhead of a Subgrid is the size of internal data not used to store grid values.
bytes_per_value: usizeThis value multiplied with any other member of this struct gives an approximate size in bytes.
Trait Implementations§
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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> 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