pub struct AnsiColor {
pub code: u8,
}
Expand description
8-bit Ansi Color Code
Fields§
§code: u8
Implementations§
Source§impl AnsiColor
impl AnsiColor
pub const fn new(code: u8) -> AnsiColor
pub const fn to_hsl(self) -> Hsl
pub const fn to_rgb(self) -> Rgb
pub fn with_luminosity_change(self, delta_luminosity: f32) -> AnsiColor
pub fn with_luminosity(self, l: f32) -> AnsiColor
pub fn with_saturation_change(self, delta_saturation: f32) -> AnsiColor
pub fn with_saturation(self, s: f32) -> AnsiColor
Trait Implementations§
impl Copy for AnsiColor
impl Eq for AnsiColor
impl StructuralPartialEq for AnsiColor
Auto Trait Implementations§
impl Freeze for AnsiColor
impl RefUnwindSafe for AnsiColor
impl Send for AnsiColor
impl Sync for AnsiColor
impl Unpin for AnsiColor
impl UnwindSafe for AnsiColor
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