pub struct Rgba {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
One color’s value: straight-alpha RGBA.
Fields§
§r: u8The red channel, 0 to 255.
g: u8The green channel, 0 to 255.
b: u8The blue channel, 0 to 255.
a: u8The alpha, 0 transparent to 255 opaque; the other channels are not multiplied by it.
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§
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