Trait ansi_colours::AsRGB[][src]

pub trait AsRGB {
    fn as_u32(&self) -> u32;
}

A trait for types which (can) represent an sRGB colour. Used to provide overloaded versions of ansi256_from_rgb function.

Required Methods

Returns representation of the sRGB colour as a 24-bit 0xRRGGBB integer.

Implementations on Foreign Types

impl AsRGB for u32
[src]

Representation of an RGB colour as 24-bit 0xRRGGBB integer.

impl AsRGB for (u8, u8, u8)
[src]

impl AsRGB for [u8; 3]
[src]

impl<'a, T: AsRGB + ?Sized> AsRGB for &'a T
[src]

Implementors