[go: up one dir, main page]

Struct gfx::tex::PackedColor []

pub struct PackedColor(pub u32);

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

Trait Implementations

impl PartialOrd<PackedColor> 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<PackedColor> for PackedColor

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

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Hash for PackedColor

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

impl Eq for PackedColor

impl Debug for PackedColor

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

Formats the value using the given formatter.

impl Copy for PackedColor

impl Clone for PackedColor

fn clone(&self) -> PackedColor

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 From<[f32; 4]> for PackedColor

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

Performs the conversion.

impl Into<[f32; 4]> for PackedColor

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

Performs the conversion.