pub struct Rgba8 {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
An sRGB color with straight (non-premultiplied) alpha.
Fields§
§r: u8Red channel (0–255).
g: u8Green channel (0–255).
b: u8Blue channel (0–255).
a: u8Alpha channel (0 = transparent, 255 = opaque).
Implementations§
Trait Implementations§
impl Copy for Rgba8
impl Eq for Rgba8
impl StructuralPartialEq for Rgba8
Auto Trait Implementations§
impl Freeze for Rgba8
impl RefUnwindSafe for Rgba8
impl Send for Rgba8
impl Sync for Rgba8
impl Unpin for Rgba8
impl UnsafeUnpin for Rgba8
impl UnwindSafe for Rgba8
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