Struct gfx_core::texture::PackedColor [] [src]

pub struct PackedColor(pub u32);

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

Trait Implementations

impl Clone for PackedColor
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for PackedColor
[src]

impl Debug for PackedColor
[src]

Formats the value using the given formatter.

impl Eq for PackedColor
[src]

impl Hash for PackedColor
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for PackedColor
[src]

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

This method tests for !=.

impl PartialOrd for PackedColor
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl From<[f32; 4]> for PackedColor
[src]

Performs the conversion.

impl Into<[f32; 4]> for PackedColor
[src]

Performs the conversion.