pub struct AnsiColor {
pub code: u8,
}Expand description
8-bit Ansi Color Code
Fields
code: u8Implementations
sourceimpl 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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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