Struct rgb::RGBA
[−]
[src]
pub struct RGBA<ComponentType> { pub r: ComponentType, pub g: ComponentType, pub b: ComponentType, pub a: ComponentType, }
Fields
r: ComponentType
g: ComponentType
b: ComponentType
a: ComponentType
Methods
impl<T: Copy> RGBA<T>
[src]
fn new(r: T, g: T, b: T, a: T) -> RGBA<T>
fn map<B, F>(&self, f: F) -> RGBA<B> where F: FnMut(T) -> B
impl<T> RGBA<T>
[src]
Trait Implementations
impl<ComponentType: Debug> Debug for RGBA<ComponentType>
[src]
impl<ComponentType: Clone> Clone for RGBA<ComponentType>
[src]
fn clone(&self) -> RGBA<ComponentType>
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