pub enum StateValue {
Bool(bool),
Mixed,
}Expand description
What a source or a selector says about one state.
Variants§
Implementations§
Source§impl StateValue
impl StateValue
Sourcepub const fn as_checked(self) -> Checked
pub const fn as_checked(self) -> Checked
The value as a Checked.
Sourcepub const fn as_bool(self) -> Option<bool>
pub const fn as_bool(self) -> Option<bool>
The value as a flag, or None for StateValue::Mixed.
Trait Implementations§
Source§impl Clone for StateValue
impl Clone for StateValue
impl Copy for StateValue
Source§impl Debug for StateValue
impl Debug for StateValue
Source§impl Display for StateValue
impl Display for StateValue
impl Eq for StateValue
Source§impl From<Checked> for StateValue
impl From<Checked> for StateValue
Source§impl From<bool> for StateValue
impl From<bool> for StateValue
Source§impl FromStr for StateValue
impl FromStr for StateValue
Source§impl Hash for StateValue
impl Hash for StateValue
Source§impl PartialEq for StateValue
impl PartialEq for StateValue
impl StructuralPartialEq for StateValue
Auto Trait Implementations§
impl Forget for StateValue
impl Freeze for StateValue
impl Move for StateValue
impl RefUnwindSafe for StateValue
impl Send for StateValue
impl Sync for StateValue
impl Unpin for StateValue
impl UnsafeUnpin for StateValue
impl UnwindSafe for StateValue
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