[−][src]Struct crossterm::style::SetForegroundColor
A command that sets the the foreground color.
See Color
for more info.
SetColors
can also be used to set both the foreground and background
color in one command.
Notes
Commands must be executed/queued for execution otherwise they do nothing.
Trait Implementations
impl Clone for SetForegroundColor
[src]
pub fn clone(&self) -> SetForegroundColor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Command for SetForegroundColor
[src]
pub fn write_ansi(&self, f: &mut impl Write) -> Result
[src]
impl Copy for SetForegroundColor
[src]
impl Debug for SetForegroundColor
[src]
impl Display for SetForegroundColor
[src]
impl Eq for SetForegroundColor
[src]
impl PartialEq<SetForegroundColor> for SetForegroundColor
[src]
pub fn eq(&self, other: &SetForegroundColor) -> bool
[src]
pub fn ne(&self, other: &SetForegroundColor) -> bool
[src]
impl StructuralEq for SetForegroundColor
[src]
impl StructuralPartialEq for SetForegroundColor
[src]
Auto Trait Implementations
impl RefUnwindSafe for SetForegroundColor
[src]
impl Send for SetForegroundColor
[src]
impl Sync for SetForegroundColor
[src]
impl Unpin for SetForegroundColor
[src]
impl UnwindSafe for SetForegroundColor
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,