Struct crossterm::style::SetForegroundColor
source · [−]pub struct SetForegroundColor(pub Color);
Expand description
Tuple Fields
0: Color
Trait Implementations
sourceimpl Clone for SetForegroundColor
impl Clone for SetForegroundColor
sourcefn clone(&self) -> SetForegroundColor
fn clone(&self) -> SetForegroundColor
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Command for SetForegroundColor
impl Command for SetForegroundColor
sourcefn write_ansi(&self, f: &mut impl Write) -> Result
fn write_ansi(&self, f: &mut impl Write) -> Result
Write an ANSI representation of this command to the given writer. An ANSI code can manipulate the terminal by writing it to the terminal buffer. However, only Windows 10 and UNIX systems support this. Read more
sourceimpl Debug for SetForegroundColor
impl Debug for SetForegroundColor
sourceimpl Display for SetForegroundColor
impl Display for SetForegroundColor
sourceimpl PartialEq<SetForegroundColor> for SetForegroundColor
impl PartialEq<SetForegroundColor> for SetForegroundColor
sourcefn eq(&self, other: &SetForegroundColor) -> bool
fn eq(&self, other: &SetForegroundColor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetForegroundColor) -> bool
fn ne(&self, other: &SetForegroundColor) -> bool
This method tests for !=
.
impl Copy for SetForegroundColor
impl Eq for SetForegroundColor
impl StructuralEq for SetForegroundColor
impl StructuralPartialEq for SetForegroundColor
Auto Trait Implementations
impl RefUnwindSafe for SetForegroundColor
impl Send for SetForegroundColor
impl Sync for SetForegroundColor
impl Unpin for SetForegroundColor
impl UnwindSafe for SetForegroundColor
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