Struct tiny_skia::PremultipliedColorU8
source · pub struct PremultipliedColorU8(/* private fields */);
Expand description
A 32-bit premultiplied RGBA color value.
Byteorder: RGBA (relevant for bytemuck casts)
Implementations§
source§impl PremultipliedColorU8
impl PremultipliedColorU8
Trait Implementations§
source§impl Clone for PremultipliedColorU8
impl Clone for PremultipliedColorU8
source§fn clone(&self) -> PremultipliedColorU8
fn clone(&self) -> PremultipliedColorU8
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PremultipliedColorU8
impl Debug for PremultipliedColorU8
source§impl PartialEq for PremultipliedColorU8
impl PartialEq for PremultipliedColorU8
source§fn eq(&self, other: &PremultipliedColorU8) -> bool
fn eq(&self, other: &PremultipliedColorU8) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PremultipliedColorU8
impl Pod for PremultipliedColorU8
impl StructuralPartialEq for PremultipliedColorU8
Auto Trait Implementations§
impl RefUnwindSafe for PremultipliedColorU8
impl Send for PremultipliedColorU8
impl Sync for PremultipliedColorU8
impl Unpin for PremultipliedColorU8
impl UnwindSafe for PremultipliedColorU8
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.