pub struct ColorParams<'params> {
pub highlight_state: HighlightState,
pub color: &'params str,
pub shade: &'params str,
}Expand description
Parameters to compute colour related CssClasses.
Fields§
§highlight_state: HighlightStateWhether the element is in the normal, focused, hovered, or active state.
color: &'params strName of the colour palette to apply, e.g. "slate".
shade: &'params strShade number to apply, e.g. "600".
Implementations§
Source§impl<'params> ColorParams<'params>
impl<'params> ColorParams<'params>
Sourcepub fn new(
highlight_state: HighlightState,
color: &'params str,
shade: &'params str,
) -> Self
pub fn new( highlight_state: HighlightState, color: &'params str, shade: &'params str, ) -> Self
Returns a new FillParams.
Trait Implementations§
Source§impl<'params> Clone for ColorParams<'params>
impl<'params> Clone for ColorParams<'params>
Source§fn clone(&self) -> ColorParams<'params>
fn clone(&self) -> ColorParams<'params>
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<'params> Debug for ColorParams<'params>
impl<'params> Debug for ColorParams<'params>
Source§impl<'params> PartialEq for ColorParams<'params>
impl<'params> PartialEq for ColorParams<'params>
impl<'params> Copy for ColorParams<'params>
impl<'params> Eq for ColorParams<'params>
impl<'params> StructuralPartialEq for ColorParams<'params>
Auto Trait Implementations§
impl<'params> Freeze for ColorParams<'params>
impl<'params> RefUnwindSafe for ColorParams<'params>
impl<'params> Send for ColorParams<'params>
impl<'params> Sync for ColorParams<'params>
impl<'params> Unpin for ColorParams<'params>
impl<'params> UnwindSafe for ColorParams<'params>
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.