Trait color::Channel[][src]

pub trait Channel: Copy + Sized + PartialOrd + PartialEq + Num + NumCast {
    fn from<T: Channel>(chan: T) -> Self;
fn to_channel_u8(self) -> u8;
fn to_channel_u16(self) -> u16;
fn to_channel_f32(self) -> f32;
fn to_channel_f64(self) -> f64;
fn invert_channel(self) -> Self;
fn max() -> Self; fn to_channel<T: Channel>(self) -> T { ... }
fn clamp(self, lo: Self, hi: Self) -> Self { ... }
fn normalized_mul(self, rhs: Self) -> Self { ... }
fn normalized_div(self, rhs: Self) -> Self { ... }
fn mix(self, rhs: Self, value: Self) -> Self { ... } }

Required Methods

Provided Methods

Implementations on Foreign Types

impl Channel for u8
[src]

impl Channel for u16
[src]

impl Channel for f32
[src]

impl Channel for f64
[src]

Implementors