pub enum Color {
Default,
Idx(u8),
Rgb(u8, u8, u8),
}Expand description
Represents a foreground or background color for cells.
Variants§
Default
The default terminal color.
Idx(u8)
An indexed terminal color.
Rgb(u8, u8, u8)
An RGB terminal color. The parameters are (red, green, blue).
Implementations§
Source§impl Color
impl Color
pub const BLACK: Color
Available on crate feature
termtui only.pub const RED: Color
Available on crate feature
termtui only.pub const GREEN: Color
Available on crate feature
termtui only.pub const YELLOW: Color
Available on crate feature
termtui only.pub const BLUE: Color
Available on crate feature
termtui only.pub const MAGENTA: Color
Available on crate feature
termtui only.pub const CYAN: Color
Available on crate feature
termtui only.pub const WHITE: Color
Available on crate feature
termtui only.pub const BRIGHT_BLACK: Color
Available on crate feature
termtui only.pub const BRIGHT_RED: Color
Available on crate feature
termtui only.pub const BRIGHT_GREEN: Color
Available on crate feature
termtui only.pub const BRIGHT_YELLOW: Color
Available on crate feature
termtui only.pub const BRIGHT_BLUE: Color
Available on crate feature
termtui only.pub const BRIGHT_MAGENTA: Color
Available on crate feature
termtui only.pub const BRIGHT_CYAN: Color
Available on crate feature
termtui only.pub const BRIGHT_WHITE: Color
Available on crate feature
termtui only.Trait Implementations§
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnsafeUnpin for Color
impl UnwindSafe for Color
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more