pub struct StateFlags(pub u8);Expand description
Interaction state bits of a widget — see Widget::state.
Tuple Fields§
§0: u8Implementations§
Source§impl StateFlags
impl StateFlags
pub const NONE: Self
pub const HOVER: Self
pub const PRESSED: Self
pub const FOCUSED: Self
pub const SELECTED: Self
pub const CHECKED: Self
pub const DISABLED: Self
pub fn insert(&mut self, o: Self)
pub fn remove(&mut self, o: Self)
pub const fn union(self, o: Self) -> Self
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl BitOr for StateFlags
impl BitOr for StateFlags
Source§impl Clone for StateFlags
impl Clone for StateFlags
impl Copy for StateFlags
Source§impl Debug for StateFlags
impl Debug for StateFlags
Source§impl Default for StateFlags
impl Default for StateFlags
impl Eq for StateFlags
Source§impl Hash for StateFlags
impl Hash for StateFlags
Source§impl PartialEq for StateFlags
impl PartialEq for StateFlags
impl StructuralPartialEq for StateFlags
Auto Trait Implementations§
impl Freeze for StateFlags
impl RefUnwindSafe for StateFlags
impl Send for StateFlags
impl Sync for StateFlags
impl Unpin for StateFlags
impl UnsafeUnpin for StateFlags
impl UnwindSafe for StateFlags
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