pub struct Color(pub [u8; 3]);
Tuple Fields§
§0: [u8; 3]
Implementations§
Source§impl Color
impl Color
pub const fn red() -> Self
pub const fn green() -> Self
pub const fn blue() -> Self
pub const fn cyan() -> Self
pub const fn magenta() -> Self
pub const fn yellow() -> Self
pub const fn white() -> Self
pub const fn orange() -> Self
pub const fn purple() -> Self
pub const fn pink() -> Self
pub const fn brown() -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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