pub struct ComponentStateStyles {
pub default: ResolvedComponentStyle,
pub hover: Option<ResolvedComponentStyle>,
pub active: Option<ResolvedComponentStyle>,
pub focus: Option<ResolvedComponentStyle>,
pub disabled: Option<ResolvedComponentStyle>,
pub error: Option<ResolvedComponentStyle>,
pub selected: Option<ResolvedComponentStyle>,
}Fields§
§default: ResolvedComponentStyle§hover: Option<ResolvedComponentStyle>§active: Option<ResolvedComponentStyle>§focus: Option<ResolvedComponentStyle>§disabled: Option<ResolvedComponentStyle>§error: Option<ResolvedComponentStyle>§selected: Option<ResolvedComponentStyle>Implementations§
Source§impl ComponentStateStyles
impl ComponentStateStyles
pub fn resolve(&self, state: ComponentState) -> ResolvedComponentStyle
Trait Implementations§
Source§impl Clone for ComponentStateStyles
impl Clone for ComponentStateStyles
Source§fn clone(&self) -> ComponentStateStyles
fn clone(&self) -> ComponentStateStyles
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 ComponentStateStyles
impl Debug for ComponentStateStyles
Source§impl Default for ComponentStateStyles
impl Default for ComponentStateStyles
Source§fn default() -> ComponentStateStyles
fn default() -> ComponentStateStyles
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ComponentStateStyles
impl<'de> Deserialize<'de> for ComponentStateStyles
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ComponentStateStyles
impl PartialEq for ComponentStateStyles
Source§fn eq(&self, other: &ComponentStateStyles) -> bool
fn eq(&self, other: &ComponentStateStyles) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ComponentStateStyles
impl Serialize for ComponentStateStyles
impl StructuralPartialEq for ComponentStateStyles
Auto Trait Implementations§
impl Freeze for ComponentStateStyles
impl RefUnwindSafe for ComponentStateStyles
impl Send for ComponentStateStyles
impl Sync for ComponentStateStyles
impl Unpin for ComponentStateStyles
impl UnsafeUnpin for ComponentStateStyles
impl UnwindSafe for ComponentStateStyles
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