pub struct LinearRgba {
pub red: f32,
pub green: f32,
pub blue: f32,
pub alpha: f32,
}Expand description
Linear RGBA color with components in the inclusive range 0.0..=1.0.
Fields§
§red: f32Red component.
green: f32Green component.
blue: f32Blue component.
alpha: f32Alpha component.
Implementations§
Trait Implementations§
Source§impl Clone for LinearRgba
impl Clone for LinearRgba
Source§fn clone(&self) -> LinearRgba
fn clone(&self) -> LinearRgba
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearRgba
impl Debug for LinearRgba
Source§impl Default for LinearRgba
impl Default for LinearRgba
Source§impl<'de> Deserialize<'de> for LinearRgba
impl<'de> Deserialize<'de> for LinearRgba
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LinearRgba
impl PartialEq for LinearRgba
Source§fn eq(&self, other: &LinearRgba) -> bool
fn eq(&self, other: &LinearRgba) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LinearRgba
impl Serialize for LinearRgba
impl Copy for LinearRgba
impl StructuralPartialEq for LinearRgba
Auto Trait Implementations§
impl Freeze for LinearRgba
impl RefUnwindSafe for LinearRgba
impl Send for LinearRgba
impl Sync for LinearRgba
impl Unpin for LinearRgba
impl UnsafeUnpin for LinearRgba
impl UnwindSafe for LinearRgba
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more