pub struct Rgba8 {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
A straight-alpha sRGB colour.
Added in 0.2.0.
Fields§
§r: u8Red.
g: u8Green.
b: u8Blue.
a: u8Alpha (255 = opaque).
Implementations§
Trait Implementations§
impl Copy for Rgba8
impl Eq for Rgba8
impl StructuralPartialEq for Rgba8
Auto Trait Implementations§
impl Forget for Rgba8
impl Freeze for Rgba8
impl Move 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