pub struct RGBA {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
A color in the RGBA color space.
Fields§
§r: u8The red channel of color in [0u8, 255u8].
g: u8The green channel of color in [0u8, 255u8].
b: u8The blue channel of color in [0u8, 255u8].
a: u8The alpha channel of color in [0u8, 255u8].
Trait Implementations§
Source§impl PartialOrd for RGBA
impl PartialOrd for RGBA
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 UnsafeUnpin 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