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