Struct webrender_api::ColorU
source · #[repr(C)]pub struct ColorU {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
Represents RGBA screen colors with one byte per channel.
If the alpha value a
is 255 the color is opaque.
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for ColorU
impl<'de> Deserialize<'de> for ColorU
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MallocSizeOf for ColorU
impl MallocSizeOf for ColorU
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl Ord for ColorU
impl Ord for ColorU
source§impl PartialEq for ColorU
impl PartialEq for ColorU
source§impl PartialOrd for ColorU
impl PartialOrd for ColorU
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ColorU
impl Eq for ColorU
impl StructuralPartialEq for ColorU
Auto Trait Implementations§
impl Freeze for ColorU
impl RefUnwindSafe for ColorU
impl Send for ColorU
impl Sync for ColorU
impl Unpin for ColorU
impl UnwindSafe for ColorU
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