#[repr(C)]
pub struct Rgba(_);
Expand description
0-1 linear space RGBA
color with premultiplied alpha.
Return an additive version of this color (alpha = 0)
Multiply with e.g. 0.5 to make us half transparent
How perceptually intense (bright) is the color?
Returns an opaque version of self
The resulting type after applying the +
operator.
Performs copy-assignment from source
. Read more
Convert self
into its canonical cint
type.
Create a Self
from its canonical cint
type.
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
The resulting type after applying the *
operator.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Serialize this value into the given Serde serializer. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
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
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.