pub struct Rgba {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
A RGBA color structure.
Fields§
§r: u8
A red component in RGB.
g: u8
A green component in RGB.
b: u8
A blue component in RGB.
a: u8
An alpha component in RGB.
Trait Implementations§
Source§impl Ord for Rgba
impl Ord for Rgba
Source§impl PartialOrd for Rgba
impl PartialOrd for Rgba
impl Copy for Rgba
impl Eq 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