Trait image::traits::Enlargeable

source ·
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§

source

fn clamp_from(n: Self::Larger) -> Self

source

fn to_larger(self) -> Self::Larger

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Enlargeable for f32

source§

impl Enlargeable for f64

source§

impl Enlargeable for i8

source§

impl Enlargeable for i16

source§

impl Enlargeable for i32

source§

impl Enlargeable for i64

source§

impl Enlargeable for isize

source§

impl Enlargeable for u8

source§

impl Enlargeable for u16

source§

impl Enlargeable for u32

source§

impl Enlargeable for u64

source§

impl Enlargeable for usize

Implementors§