Trait ansi_colours::AsRGB[][src]

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

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

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

Implementors