Struct crossterm::style::SetBackgroundColor
source · [−]pub struct SetBackgroundColor(pub Color);
Expand description
Tuple Fields
0: Color
Trait Implementations
sourceimpl Clone for SetBackgroundColor
impl Clone for SetBackgroundColor
sourcefn clone(&self) -> SetBackgroundColor
fn clone(&self) -> SetBackgroundColor
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 SetBackgroundColor
impl Command for SetBackgroundColor
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 SetBackgroundColor
impl Debug for SetBackgroundColor
sourceimpl Display for SetBackgroundColor
impl Display for SetBackgroundColor
sourceimpl PartialEq<SetBackgroundColor> for SetBackgroundColor
impl PartialEq<SetBackgroundColor> for SetBackgroundColor
sourcefn eq(&self, other: &SetBackgroundColor) -> bool
fn eq(&self, other: &SetBackgroundColor) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetBackgroundColor) -> bool
fn ne(&self, other: &SetBackgroundColor) -> bool
This method tests for !=
.
impl Copy for SetBackgroundColor
impl Eq for SetBackgroundColor
impl StructuralEq for SetBackgroundColor
impl StructuralPartialEq for SetBackgroundColor
Auto Trait Implementations
impl RefUnwindSafe for SetBackgroundColor
impl Send for SetBackgroundColor
impl Sync for SetBackgroundColor
impl Unpin for SetBackgroundColor
impl UnwindSafe for SetBackgroundColor
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