Struct gfx::texture::PackedColor
source · pub struct PackedColor(pub u32);
Expand description
A wrapper for the 8bpp RGBA color, encoded as u32.
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Clone for PackedColor
impl Clone for PackedColor
source§fn clone(&self) -> PackedColor
fn clone(&self) -> PackedColor
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PackedColor
impl Debug for PackedColor
source§impl Hash for PackedColor
impl Hash for PackedColor
source§impl PartialEq<PackedColor> for PackedColor
impl PartialEq<PackedColor> for PackedColor
source§fn eq(&self, other: &PackedColor) -> bool
fn eq(&self, other: &PackedColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PackedColor> for PackedColor
impl PartialOrd<PackedColor> for PackedColor
source§fn partial_cmp(&self, other: &PackedColor) -> Option<Ordering>
fn partial_cmp(&self, other: &PackedColor) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more