pub struct Rgba {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
32-bit straight (non-premultiplied) RGBA color.
Matches SVG’s rgb() + opacity model and PDF’s RGB + CA/ca
graphic-state model. Premultiplication is a rasterizer concern; this
IR carries straight alpha to avoid lossy round-trips.
Fields§
§r: u8§g: u8§b: u8§a: u8Implementations§
Trait Implementations§
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 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