Struct gfx_core::tex::PackedColor [] [src]

pub struct PackedColor(pub u32);

A wrapper for the 8bpp RGBA color, encoded as u32.

Trait Implementations

impl From<[f32; 4]> for PackedColor

fn from(c: [f32; 4]) -> PackedColor

impl Into<[f32; 4]> for PackedColor

fn into(self) -> [f32; 4]

Derived Implementations

impl PartialOrd for PackedColor

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

fn lt(&self, __arg_0: &PackedColor) -> bool

fn le(&self, __arg_0: &PackedColor) -> bool

fn gt(&self, __arg_0: &PackedColor) -> bool

fn ge(&self, __arg_0: &PackedColor) -> bool

impl PartialEq for PackedColor

fn eq(&self, __arg_0: &PackedColor) -> bool

fn ne(&self, __arg_0: &PackedColor) -> bool

impl Hash for PackedColor

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for PackedColor

impl Debug for PackedColor

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

impl Copy for PackedColor

impl Clone for PackedColor

fn clone(&self) -> PackedColor

1.0.0fn clone_from(&mut self, source: &Self)