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

Performs the conversion.

impl PartialEq<PackedColor> for PackedColor

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

This method tests for !=.

impl Hash for PackedColor

impl Clone for PackedColor

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PackedColor

Formats the value using the given formatter.

impl Eq for PackedColor

impl Copy for PackedColor

impl Into<[f32; 4]> for PackedColor

Performs the conversion.

impl PartialOrd<PackedColor> for PackedColor