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: Clone

fn new(r: T, g: T, b: T, a: T) -> RGBA<T>

fn iter(&self) -> Cloned<Iter<T>>

Trait Implementations

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

fn partial_cmp(&self, __arg_0: &RGBA<ComponentType>) -> Option<Ordering>

fn lt(&self, __arg_0: &RGBA<ComponentType>) -> bool

fn le(&self, __arg_0: &RGBA<ComponentType>) -> bool

fn gt(&self, __arg_0: &RGBA<ComponentType>) -> bool

fn ge(&self, __arg_0: &RGBA<ComponentType>) -> bool

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

fn cmp(&self, __arg_0: &RGBA<ComponentType>) -> Ordering

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

fn eq(&self, __arg_0: &RGBA<ComponentType>) -> bool

fn ne(&self, __arg_0: &RGBA<ComponentType>) -> bool

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

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, B> ComponentMap<RGBA<B>, T, B> for RGBA<T> where T: Copy

fn map<F>(&self, f: F) -> RGBA<B> where F: FnMut(T) -> B

impl<T> ComponentBytes<T> for RGBA<T>

fn as_slice(&self) -> &[T]

fn as_mut_slice(&mut self) -> &mut [T]

impl<T> FromIterator<T> for RGBA<T>

fn from_iter<I>(into_iter: I) -> RGBA<T> where I: IntoIterator<Item=T>

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

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

Formats the value using the given formatter.

impl<T> Add<RGBA<T>> for RGBA<T> where T: Add<T> + Clone + From<T::Output>, RGBA<T>: FromIterator<T::Output>

type Output = RGBA<T>

fn add(self, other: RGBA<T>) -> RGBA<T>::Output

impl<T> Add<T> for RGBA<T> where T: Copy + Add<T, Output=T> + Clone + Add<T>

type Output = RGBA<T>

fn add(self, r: T) -> RGBA<T>::Output

impl<T> Mul<T> for RGBA<T> where T: Copy + Mul<T, Output=T> + Clone + Mul<T>

type Output = RGBA<T>

fn mul(self, r: T) -> RGBA<T>::Output