pub trait Enlargeable:
Sized
+ Bounded
+ NumCast {
type Larger: Copy + NumCast + Num + PartialOrd<Self::Larger> + Clone + Bounded + AddAssign;
// Provided methods
fn clamp_from(n: Self::Larger) -> Self { ... }
fn to_larger(self) -> Self::Larger { ... }
}
Expand description
An Enlargable::Larger value should be enough to calculate the sum (average) of a few hundred or thousand Enlargeable values.
Required Associated Types§
Provided 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.