pub struct ColorU {
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}
Expand description
u8-based color, range 0 to 255 (similar to webrenders ColorU)
Fields§
§r: u8
§g: u8
§b: u8
§a: u8
Implementations§
Trait Implementations§
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
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
)