pub struct Rgb(pub u32);Expand description
A 24-bit colour. The GPU shows the nearest colour its tier supports.
Tuple Fields§
§0: u32Implementations§
Source§impl Rgb
impl Rgb
pub const BLACK: Rgb
pub const WHITE: Rgb
pub const GREY: Rgb
pub const RED: Rgb
pub const GREEN: Rgb
pub const BLUE: Rgb
pub const YELLOW: Rgb
pub const CYAN: Rgb
pub const MAGENTA: Rgb
pub const fn new(r: u8, g: u8, b: u8) -> Rgb
pub const fn r(self) -> u8
pub const fn g(self) -> u8
pub const fn b(self) -> u8
Trait Implementations§
impl Copy for Rgb
impl Eq for Rgb
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
impl Forget for Rgb
impl Freeze for Rgb
impl Move for Rgb
impl RefUnwindSafe for Rgb
impl Send for Rgb
impl Sync for Rgb
impl Unpin for Rgb
impl UnsafeUnpin for Rgb
impl UnwindSafe for Rgb
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