pub struct Rgba {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}Expand description
An sRGB colour, components in 0..=1.
Fields§
§r: f32Red, 0..=1.
g: f32Green, 0..=1.
b: f32Blue, 0..=1.
a: f32Alpha, 0..=1.
Trait Implementations§
impl Copy for Rgba
impl StructuralPartialEq for Rgba
Auto Trait Implementations§
impl Forget for Rgba
impl Freeze for Rgba
impl Move for Rgba
impl RefUnwindSafe for Rgba
impl Send for Rgba
impl Sync for Rgba
impl Unpin for Rgba
impl UnsafeUnpin for Rgba
impl UnwindSafe for Rgba
Blanket Implementations§
impl<T> AutoreleaseSafe for Twhere
T: ?Sized,
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