pub struct RGBA32 {
    pub r: f32,
    pub g: f32,
    pub b: f32,
    pub a: f32,
}
Expand description

A color in the RGBA color_parser space with 32-bit precision.

lossless format of rgb colors

Fields

r: f32

The red channel of color in [0.0f32, 1.0f32].

g: f32

The green channel of color in [0.0f32, 1.0f32].

b: f32

The blue channel of color in [0.0f32, 1.0f32].

a: f32

The alpha channel of color in [0.0f32, 1.0f32].

Implementations

Normalize RGBA32 color_parser.

Create RGBA32 from (f32, f32, f32, f32) tuple.

Create RGBA32 from (u8, u8, u8) tuple.

Create RGBA32 from (u8, u8, u8, u8) tuple.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

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

Formats the value using the given formatter.

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

This method tests for !=.

Formats the value using the given formatter.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.