pub struct SemanticPalette {
pub success: Color,
pub warning: Color,
pub danger: Color,
}Expand description
Resolved state colors after collision avoidance.
Fields§
§success: ColorForeground for success affordances (typically green).
warning: ColorForeground for warning affordances (typically amber).
danger: ColorForeground for danger / destructive affordances (typically red).
Trait Implementations§
Source§impl Clone for SemanticPalette
impl Clone for SemanticPalette
Source§fn clone(&self) -> SemanticPalette
fn clone(&self) -> SemanticPalette
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SemanticPalette
impl Debug for SemanticPalette
impl Copy for SemanticPalette
Auto Trait Implementations§
impl Freeze for SemanticPalette
impl RefUnwindSafe for SemanticPalette
impl Send for SemanticPalette
impl Sync for SemanticPalette
impl Unpin for SemanticPalette
impl UnsafeUnpin for SemanticPalette
impl UnwindSafe for SemanticPalette
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