pub trait Average {
// Required method
fn average(value: Self, other: Self) -> Self;
}Expand description
A trait to take the average of two values
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.