Struct lodepng::RGBA []

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> RGBA<T> where T: Copy

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>

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

Trait Implementations

impl<ComponentType> Debug for RGBA<ComponentType> where ComponentType: Debug

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

Formats the value using the given formatter.

impl<ComponentType> Clone for RGBA<ComponentType> where ComponentType: Clone

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 for RGBA<ComponentType> where ComponentType: Copy

impl<T> Display for RGBA<T> where T: Display

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

Formats the value using the given formatter.