Struct windowed_stats::aggregations::SumAndCount
source · pub struct SumAndCount {
pub sum: u32,
pub count: u32,
}
Fields§
§sum: u32
§count: u32
Implementations§
Trait Implementations§
source§impl Add for SumAndCount
impl Add for SumAndCount
source§impl Clone for SumAndCount
impl Clone for SumAndCount
source§fn clone(&self) -> SumAndCount
fn clone(&self) -> SumAndCount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SumAndCount
impl Debug for SumAndCount
source§impl Default for SumAndCount
impl Default for SumAndCount
source§fn default() -> SumAndCount
fn default() -> SumAndCount
Returns the “default value” for a type. Read more
source§impl PartialEq for SumAndCount
impl PartialEq for SumAndCount
source§fn eq(&self, other: &SumAndCount) -> bool
fn eq(&self, other: &SumAndCount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl SaturatingAdd for SumAndCount
impl SaturatingAdd for SumAndCount
source§fn saturating_add(&self, other: &Self) -> Self
fn saturating_add(&self, other: &Self) -> Self
Saturating addition. Computes
self + other
, saturating at the relevant high or low boundary of
the type.impl Copy for SumAndCount
impl StructuralPartialEq for SumAndCount
Auto Trait Implementations§
impl Freeze for SumAndCount
impl RefUnwindSafe for SumAndCount
impl Send for SumAndCount
impl Sync for SumAndCount
impl Unpin for SumAndCount
impl UnwindSafe for SumAndCount
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)