Struct Ansi256Color
#[repr(transparent)]pub struct Ansi256Color(pub u8);
Expand description
Tuple Fields§
§0: u8
Implementations§
§impl Ansi256Color
impl Ansi256Color
pub const fn on_default(self) -> Style
pub const fn on_default(self) -> Style
Create a Style
with this as the foreground
pub const fn from_ansi(color: AnsiColor) -> Ansi256Color
pub const fn from_ansi(color: AnsiColor) -> Ansi256Color
Losslessly convert from AnsiColor
Trait Implementations§
§impl Clone for Ansi256Color
impl Clone for Ansi256Color
§fn clone(&self) -> Ansi256Color
fn clone(&self) -> Ansi256Color
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for Ansi256Color
impl Debug for Ansi256Color
§impl From<Ansi256Color> for Color
impl From<Ansi256Color> for Color
§fn from(inner: Ansi256Color) -> Color
fn from(inner: Ansi256Color) -> Color
Converts to this type from the input type.
§impl From<AnsiColor> for Ansi256Color
impl From<AnsiColor> for Ansi256Color
§fn from(inner: AnsiColor) -> Ansi256Color
fn from(inner: AnsiColor) -> Ansi256Color
Converts to this type from the input type.
§impl From<u8> for Ansi256Color
impl From<u8> for Ansi256Color
§fn from(inner: u8) -> Ansi256Color
fn from(inner: u8) -> Ansi256Color
Converts to this type from the input type.
§impl Hash for Ansi256Color
impl Hash for Ansi256Color
§impl Ord for Ansi256Color
impl Ord for Ansi256Color
§impl PartialEq for Ansi256Color
impl PartialEq for Ansi256Color
§impl PartialOrd for Ansi256Color
impl PartialOrd for Ansi256Color
impl Copy for Ansi256Color
impl Eq for Ansi256Color
impl StructuralPartialEq for Ansi256Color
Auto Trait Implementations§
impl Freeze for Ansi256Color
impl RefUnwindSafe for Ansi256Color
impl Send for Ansi256Color
impl Sync for Ansi256Color
impl Unpin for Ansi256Color
impl UnwindSafe for Ansi256Color
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