pub struct WidgetState {
pub focused: bool,
pub hovered: bool,
pub disabled: bool,
pub focus_within: bool,
}Expand description
Component state used to resolve pseudo-class selectors.
Fields§
§focused: bool§hovered: bool§disabled: bool§focus_within: boolTrait Implementations§
Source§impl Clone for WidgetState
impl Clone for WidgetState
Source§fn clone(&self) -> WidgetState
fn clone(&self) -> WidgetState
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 WidgetState
impl Debug for WidgetState
Source§impl Default for WidgetState
impl Default for WidgetState
Source§fn default() -> WidgetState
fn default() -> WidgetState
Returns the “default value” for a type. Read more
impl Copy for WidgetState
Auto Trait Implementations§
impl Freeze for WidgetState
impl RefUnwindSafe for WidgetState
impl Send for WidgetState
impl Sync for WidgetState
impl Unpin for WidgetState
impl UnsafeUnpin for WidgetState
impl UnwindSafe for WidgetState
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