Skip to main content

SimpleSumAverage

Struct SimpleSumAverage 

Source
pub struct SimpleSumAverage<T: Default, Count: Default = usize> { /* private fields */ }

Implementations§

Source§

impl SimpleSumAverage<i8, usize>

Source

pub fn take_mean(&mut self) -> i8

Source§

impl SimpleSumAverage<i16, usize>

Source

pub fn take_mean(&mut self) -> i16

Source§

impl SimpleSumAverage<i32, usize>

Source

pub fn take_mean(&mut self) -> i32

Source§

impl SimpleSumAverage<i64, usize>

Source

pub fn take_mean(&mut self) -> i64

Source§

impl SimpleSumAverage<i128, usize>

Source

pub fn take_mean(&mut self) -> i128

Source§

impl SimpleSumAverage<u8, usize>

Source

pub fn take_mean(&mut self) -> u8

Source§

impl SimpleSumAverage<u16, usize>

Source

pub fn take_mean(&mut self) -> u16

Source§

impl SimpleSumAverage<u32, usize>

Source

pub fn take_mean(&mut self) -> u32

Source§

impl SimpleSumAverage<u64, usize>

Source

pub fn take_mean(&mut self) -> u64

Source§

impl SimpleSumAverage<u128, usize>

Source

pub fn take_mean(&mut self) -> u128

Source§

impl SimpleSumAverage<i8, u8>

Source

pub fn take_mean(&mut self) -> i8

Source§

impl SimpleSumAverage<i16, u8>

Source

pub fn take_mean(&mut self) -> i16

Source§

impl SimpleSumAverage<i32, u8>

Source

pub fn take_mean(&mut self) -> i32

Source§

impl SimpleSumAverage<i64, u8>

Source

pub fn take_mean(&mut self) -> i64

Source§

impl SimpleSumAverage<i128, u8>

Source

pub fn take_mean(&mut self) -> i128

Source§

impl SimpleSumAverage<u8, u8>

Source

pub fn take_mean(&mut self) -> u8

Source§

impl SimpleSumAverage<u16, u8>

Source

pub fn take_mean(&mut self) -> u16

Source§

impl SimpleSumAverage<u32, u8>

Source

pub fn take_mean(&mut self) -> u32

Source§

impl SimpleSumAverage<u64, u8>

Source

pub fn take_mean(&mut self) -> u64

Source§

impl SimpleSumAverage<u128, u8>

Source

pub fn take_mean(&mut self) -> u128

Source§

impl SimpleSumAverage<f32, usize>

Source

pub fn take_mean(&mut self) -> f32

Source§

impl SimpleSumAverage<f64, usize>

Source

pub fn take_mean(&mut self) -> f64

Source§

impl SimpleSumAverage<f32, u8>

Source

pub fn take_mean(&mut self) -> f32

Source§

impl SimpleSumAverage<f64, u8>

Source

pub fn take_mean(&mut self) -> f64

Trait Implementations§

Source§

impl<T: Add<Output = T> + Default, Count: Add<Output = Count> + Default> Add for SimpleSumAverage<T, Count>

Source§

type Output = SimpleSumAverage<T, Count>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: Self) -> Self

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Default, Count: Add<u8, Output = Count> + Default> Add<T> for SimpleSumAverage<T, Count>

Source§

type Output = SimpleSumAverage<T, Count>

The resulting type after applying the + operator.
Source§

fn add(self, rhs: T) -> Self

Performs the + operation. Read more
Source§

impl<T: Add<Output = T> + Default + Copy, Count: Add<Count, Output = Count> + Default + Copy + From<u8>> AddAssign<T> for SimpleSumAverage<T, Count>

Source§

fn add_assign(&mut self, rhs: T)

Performs the += operation. Read more
Source§

impl<T: Debug + Default, Count: Debug + Default> Debug for SimpleSumAverage<T, Count>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T: Default + Default, Count: Default + Default> Default for SimpleSumAverage<T, Count>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T, Count> Freeze for SimpleSumAverage<T, Count>
where T: Freeze, Count: Freeze,

§

impl<T, Count> RefUnwindSafe for SimpleSumAverage<T, Count>
where T: RefUnwindSafe, Count: RefUnwindSafe,

§

impl<T, Count> Send for SimpleSumAverage<T, Count>
where T: Send, Count: Send,

§

impl<T, Count> Sync for SimpleSumAverage<T, Count>
where T: Sync, Count: Sync,

§

impl<T, Count> Unpin for SimpleSumAverage<T, Count>
where T: Unpin, Count: Unpin,

§

impl<T, Count> UnsafeUnpin for SimpleSumAverage<T, Count>
where T: UnsafeUnpin, Count: UnsafeUnpin,

§

impl<T, Count> UnwindSafe for SimpleSumAverage<T, Count>
where T: UnwindSafe, Count: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.