Expand description
Color as Red, Green, Blue, and Alpha with pre-multiplied components
Fields
r: u8
g: u8
b: u8
a: u8
Implementations
Trait Implementations
sourceimpl Color for Rgba8pre
impl Color for Rgba8pre
sourcefn is_premultiplied(&self) -> bool
fn is_premultiplied(&self) -> bool
Return if the color has been premultiplied
sourcefn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Return if the color is completely transparent, alpha = 0.0
impl Copy for Rgba8pre
impl StructuralPartialEq for Rgba8pre
Auto Trait Implementations
impl RefUnwindSafe for Rgba8pre
impl Send for Rgba8pre
impl Sync for Rgba8pre
impl Unpin for Rgba8pre
impl UnwindSafe for Rgba8pre
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more