pub struct ColorU8(/* private fields */);
Expand description
A 32-bit RGBA color value.
Byteorder: RGBA (relevant for bytemuck casts)
Implementations§
source§impl ColorU8
impl ColorU8
sourcepub fn premultiply(&self) -> PremultipliedColorU8
pub fn premultiply(&self) -> PremultipliedColorU8
Converts into a premultiplied color.
Trait Implementations§
impl Copy for ColorU8
impl StructuralPartialEq for ColorU8
Auto Trait Implementations§
impl Freeze for ColorU8
impl RefUnwindSafe for ColorU8
impl Send for ColorU8
impl Sync for ColorU8
impl Unpin for ColorU8
impl UnwindSafe for ColorU8
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)