Struct spectra::render::color::RGB
[−]
[src]
pub struct RGB { pub r: f32, pub g: f32, pub b: f32, }
A 3-channel (red, green, blue) color.
Fields
r: f32
g: f32
b: f32
Methods
impl RGB
[src]
Trait Implementations
impl Clone for RGB
[src]
fn clone(&self) -> RGB
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for RGB
[src]
impl Debug for RGB
[src]
impl PartialEq for RGB
[src]
fn eq(&self, __arg_0: &RGB) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RGB) -> bool
[src]
This method tests for !=
.