Struct exoquant::Color
[−]
[src]
pub struct Color {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}A RGBA8 color used for both the input image data and the palette output.
Fields
r | |
g | |
b | |
a |
Methods
impl Color[src]
Trait Implementations
Derived Implementations
impl Hash for Color[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for Color[src]
fn eq(&self, __arg_0: &Color) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Color) -> bool
This method tests for !=.
impl Eq for Color[src]
impl Clone for Color[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more