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]

fn as_bytes(&self) -> &[u8]

Trait Implementations

impl<ComponentType: Debug> Debug for RGBA<ComponentType>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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

impl<ComponentType: Copy> Copy for RGBA<ComponentType>
[src]

impl<T: Display> Display for RGBA<T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.