pub struct SumAndCount {
pub sum: u32,
pub count: u32,
}Fields§
§sum: u32§count: u32Implementations§
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 duplicate 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§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,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
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