Trait palette::Component[][src]

pub trait Component: Copy + Zero + PartialOrd {
    fn max_intensity() -> Self;
}

Common trait for color components.

Required methods

fn max_intensity() -> Self[src]

The highest displayable value this component type can reach. Higher values are allowed, but they may be lowered to this before converting to another format.

Loading content...

Implementations on Foreign Types

impl Component for f32[src]

impl Component for f64[src]

impl Component for u8[src]

impl Component for u16[src]

impl Component for u32[src]

impl Component for u64[src]

impl Component for u128[src]

Loading content...

Implementors

Loading content...