pub struct Swatch {
pub base: Pair,
pub weak: Pair,
pub strong: Pair,
}Expand description
A color sample in a palette of colors.
Fields§
§base: PairThe base color.
weak: PairA weaker version of the base color.
strong: PairA stronger version of the base color.
Implementations§
Trait Implementations§
impl Copy for Swatch
impl StructuralPartialEq for Swatch
Auto Trait Implementations§
impl Freeze for Swatch
impl RefUnwindSafe for Swatch
impl Send for Swatch
impl Sync for Swatch
impl Unpin for Swatch
impl UnsafeUnpin for Swatch
impl UnwindSafe for Swatch
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