pub struct Background {
pub base: Pair,
pub weakest: Pair,
pub weak: Pair,
pub strong: Pair,
pub strongest: Pair,
}
Expand description
A set of background colors.
Fields§
§base: Pair
The base background color.
weakest: Pair
The weakest version of the base background color.
weak: Pair
A weaker version of the base background color.
strong: Pair
A stronger version of the base background color.
strongest: Pair
The strongest version of the base background color.
Implementations§
Source§impl Background
impl Background
Sourcepub fn new(base: Color, text: Color) -> Self
pub fn new(base: Color, text: Color) -> Self
Generates a set of Background
colors from the base and text colors.
Trait 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 PartialEq for Background
impl PartialEq for Background
impl Copy 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