#[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 PartialOrd for ColorU
impl PartialOrd for ColorU
impl 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