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