pub struct LayerColors {
pub background: RGB,
pub foreground: RGB,
}Expand description
Background and foreground colors.
Fields§
§background: RGBBackground color.
foreground: RGBForeground color.
Implementations§
Trait Implementations§
Source§impl Clone for LayerColors
impl Clone for LayerColors
Source§fn clone(&self) -> LayerColors
fn clone(&self) -> LayerColors
Returns a duplicate 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 LayerColors
impl Debug for LayerColors
Source§impl Default for LayerColors
impl Default for LayerColors
Source§fn default() -> LayerColors
fn default() -> LayerColors
Returns the “default value” for a type. Read more
Source§impl Hash for LayerColors
impl Hash for LayerColors
Source§impl Ord for LayerColors
impl Ord for LayerColors
Source§fn cmp(&self, other: &LayerColors) -> Ordering
fn cmp(&self, other: &LayerColors) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LayerColors
impl PartialEq for LayerColors
Source§impl PartialOrd for LayerColors
impl PartialOrd for LayerColors
impl Copy for LayerColors
impl Eq for LayerColors
impl StructuralPartialEq for LayerColors
Auto Trait Implementations§
impl Freeze for LayerColors
impl RefUnwindSafe for LayerColors
impl Send for LayerColors
impl Sync for LayerColors
impl Unpin for LayerColors
impl UnwindSafe for LayerColors
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