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

Implementations on Foreign Types§

source§

impl Enlargeable for isize

§

type Larger = i128

source§

impl Enlargeable for i16

§

type Larger = i32

source§

impl Enlargeable for i8

§

type Larger = i32

source§

impl Enlargeable for i64

§

type Larger = i128

source§

impl Enlargeable for u32

§

type Larger = u64

source§

impl Enlargeable for u16

§

type Larger = u32

source§

impl Enlargeable for u8

§

type Larger = u32

source§

impl Enlargeable for f32

§

type Larger = f64

source§

impl Enlargeable for usize

§

type Larger = u128

source§

impl Enlargeable for f64

§

type Larger = f64

source§

impl Enlargeable for i32

§

type Larger = i64

source§

impl Enlargeable for u64

§

type Larger = u128

Implementors§