Struct text_terminal::BackgroundColor
source · pub struct BackgroundColor(pub Color);
Expand description
A wrapper type around Color
that is used in crate::AnsiStyleCodes
to set the background color (behind displayed text).
Tuple Fields§
§0: Color
Implementations§
source§impl BackgroundColor
impl BackgroundColor
pub fn to_escape_code(self) -> Cow<'static, str>
Trait Implementations§
source§impl Clone for BackgroundColor
impl Clone for BackgroundColor
source§fn clone(&self) -> BackgroundColor
fn clone(&self) -> BackgroundColor
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 moresource§impl Debug for BackgroundColor
impl Debug for BackgroundColor
source§impl Default for BackgroundColor
impl Default for BackgroundColor
source§fn default() -> BackgroundColor
fn default() -> BackgroundColor
Returns the “default value” for a type. Read more
source§impl From<Color> for BackgroundColor
impl From<Color> for BackgroundColor
source§impl PartialEq<BackgroundColor> for BackgroundColor
impl PartialEq<BackgroundColor> for BackgroundColor
source§fn eq(&self, other: &BackgroundColor) -> bool
fn eq(&self, other: &BackgroundColor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for BackgroundColor
impl Eq for BackgroundColor
impl StructuralEq for BackgroundColor
impl StructuralPartialEq for BackgroundColor
Auto Trait Implementations§
impl RefUnwindSafe for BackgroundColor
impl Send for BackgroundColor
impl Sync for BackgroundColor
impl Unpin for BackgroundColor
impl UnwindSafe for BackgroundColor
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