pub struct RGBA {
pub red: Option<u8>,
pub green: Option<u8>,
pub blue: Option<u8>,
pub alpha: Option<f32>,
}
Expand description
A color with red, green, blue, and alpha components, in a byte each.
Fields§
§red: Option<u8>
The red component.
green: Option<u8>
The green component.
blue: Option<u8>
The blue component.
alpha: Option<f32>
The alpha component.
Implementations§
Trait Implementations§
impl Copy for RGBA
impl StructuralPartialEq for RGBA
Auto Trait Implementations§
impl Freeze for RGBA
impl RefUnwindSafe for RGBA
impl Send for RGBA
impl Sync for RGBA
impl Unpin for RGBA
impl UnwindSafe for RGBA
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