pub trait Average {
// Required method
fn avg(a: Self, b: Self) -> Self;
}
Expand description
Compute the average of two values without overflow.
Required Methods§
Object Safety§
This trait is not object safe.
pub trait Average {
// Required method
fn avg(a: Self, b: Self) -> Self;
}
Compute the average of two values without overflow.