Struct simple_color::Color
source · [−]Fields
r: u8b: u8g: u8a: u8Implementations
sourceimpl Color
impl Color
pub const WHITE: Self = _
pub const BLACK: Self = _
pub const RED: Self = _
pub const GREEN: Self = _
pub const BLUE: Self = _
pub const CYAN: Self = _
pub const MAGENTA: Self = _
pub const YELLOW: Self = _
pub const fn gray(shade: u8) -> Self
pub const fn rgb(r: u8, g: u8, b: u8) -> Self
pub const fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self
pub const fn r(self, r: u8) -> Self
pub const fn g(self, g: u8) -> Self
pub const fn b(self, b: u8) -> Self
pub const fn a(self, a: u8) -> Self
Trait Implementations
impl Copy for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more