Struct stylish_core::Foreground
source · pub struct Foreground(pub Color);Expand description
A Restyle implementor for setting Style::foreground.
use stylish::{Color, Foreground, Style};
let mut expected = Style::default();
expected.foreground = Color::Magenta;
assert_eq!(Style::default().with(Foreground(Color::Magenta)), expected);Tuple Fields§
§0: ColorTrait Implementations§
source§impl Clone for Foreground
impl Clone for Foreground
source§fn clone(&self) -> Foreground
fn clone(&self) -> Foreground
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 Foreground
impl Debug for Foreground
source§impl Default for Foreground
impl Default for Foreground
source§fn default() -> Foreground
fn default() -> Foreground
Returns the “default value” for a type. Read more
source§impl PartialEq for Foreground
impl PartialEq for Foreground
source§fn eq(&self, other: &Foreground) -> bool
fn eq(&self, other: &Foreground) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Restyle for Foreground
impl Restyle for Foreground
impl Copy for Foreground
impl Eq for Foreground
impl StructuralPartialEq for Foreground
Auto Trait Implementations§
impl Freeze for Foreground
impl RefUnwindSafe for Foreground
impl Send for Foreground
impl Sync for Foreground
impl Unpin for Foreground
impl UnwindSafe for Foreground
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)