pub struct ColorDesc {
pub r: u8,
pub g: u8,
pub b: u8,
pub color_type: ColorType,
}
Fields§
§r: u8
§g: u8
§b: u8
§color_type: ColorType
Implementations§
Source§impl ColorDesc
impl ColorDesc
pub const fn rgb(r: u8, g: u8, b: u8) -> Self
pub const fn rgb_bg(r: u8, g: u8, b: u8) -> Self
pub const fn red() -> Self
pub const fn red_bg() -> Self
pub const fn green() -> Self
pub const fn green_bg() -> Self
pub const fn yellow() -> Self
pub const fn yellow_bg() -> Self
pub const fn blue() -> Self
pub const fn blue_bg() -> Self
pub const fn light_blue() -> Self
pub const fn light_blue_bg() -> Self
Trait Implementations§
impl Copy for ColorDesc
Auto Trait Implementations§
impl Freeze for ColorDesc
impl RefUnwindSafe for ColorDesc
impl Send for ColorDesc
impl Sync for ColorDesc
impl Unpin for ColorDesc
impl UnwindSafe for ColorDesc
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