Trait coupe::Average

source ·
pub trait Average {
    // Required method
    fn avg(a: Self, b: Self) -> Self;
}
Expand description

Compute the average of two values without overflow.

Required Methods§

source

fn avg(a: Self, b: Self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Average for f64

source§

fn avg(a: Self, b: Self) -> Self

source§

impl Average for i64

source§

impl Average for u64

Implementors§