Trait rin::color::Channel[][src]

pub trait Channel: Copy + PartialOrd<Self> + PartialEq<Self> {
    type NearestFloat: Float + Channel;
Show methods pub fn from<T>(chan: T) -> Self
    where
        T: Channel
;
pub fn to_channel_u8(self) -> u8;
pub fn to_channel_u16(self) -> u16;
pub fn to_channel_u32(self) -> u32;
pub fn to_channel_f16(self) -> f16;
pub fn to_channel_f32(self) -> f32;
pub fn to_channel_f64(self) -> f64;
pub fn to_nearest_precision_float(self) -> Self::NearestFloat;
pub fn invert_channel(self) -> Self;
pub fn max() -> Self;
pub fn mix(self, rhs: Self, value: Self) -> Self;
pub fn zero() -> Self; pub fn to_channel<T>(self) -> T
    where
        T: Channel
, { ... }
pub fn clamp(self, lo: Self, hi: Self) -> Self { ... }
pub fn normalized_mul(self, rhs: Self) -> Self { ... }
pub fn normalized_div(self, rhs: Self) -> Self { ... }
}

Associated Types

type NearestFloat: Float + Channel[src]

Loading content...

Required methods

pub fn from<T>(chan: T) -> Self where
    T: Channel
[src]

pub fn to_channel_u8(self) -> u8[src]

pub fn to_channel_u16(self) -> u16[src]

pub fn to_channel_u32(self) -> u32[src]

pub fn to_channel_f16(self) -> f16[src]

pub fn to_channel_f32(self) -> f32[src]

pub fn to_channel_f64(self) -> f64[src]

pub fn to_nearest_precision_float(self) -> Self::NearestFloat[src]

pub fn invert_channel(self) -> Self[src]

pub fn max() -> Self[src]

pub fn mix(self, rhs: Self, value: Self) -> Self[src]

pub fn zero() -> Self[src]

Loading content...

Provided methods

pub fn to_channel<T>(self) -> T where
    T: Channel
[src]

pub fn clamp(self, lo: Self, hi: Self) -> Self[src]

pub fn normalized_mul(self, rhs: Self) -> Self[src]

pub fn normalized_div(self, rhs: Self) -> Self[src]

Loading content...

Implementations on Foreign Types

impl Channel for f16[src]

type NearestFloat = f32

impl Channel for u16[src]

type NearestFloat = f32

impl Channel for f32[src]

type NearestFloat = f32

impl Channel for f64[src]

type NearestFloat = f64

impl Channel for u32[src]

type NearestFloat = f32

impl Channel for u8[src]

type NearestFloat = f32

Loading content...

Implementors

Loading content...