Struct gfx::tex::PackedColor
[−]
[src]
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
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.