#[non_exhaustive]pub enum StateName {
Show 18 variants
Disabled,
Readonly,
Checked,
Pressed,
Expanded,
Selected,
Focused,
Current,
Busy,
Required,
Invalid,
Multiline,
Multiselectable,
Modal,
Focusable,
Hidden,
Offscreen,
Inert,
}Expand description
A state a semantic node can carry.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Disabled
The node takes no input.
Readonly
The node shows a value that cannot be changed.
Checked
Checked, unchecked or mixed.
Pressed
A toggle button is pressed.
Expanded
The node’s content or popup is shown.
Selected
An item is selected in its container.
Focused
The node has keyboard focus.
Current
The current item in a set, such as the open page in a sidebar.
Busy
The node is loading or updating.
Required
A form control must be filled in.
Invalid
A form control’s value is rejected.
Multiline
A text box takes more than one line.
Multiselectable
A container allows more than one selected item.
Modal
Everything outside the node is inert while it is shown.
Focusable
The node can take keyboard focus.
Hidden
The node is not shown.
Offscreen
The node has size but is clipped out of view.
Inert
The node is outside the topmost modal.
Implementations§
Trait Implementations§
impl Copy for StateName
Source§impl<'de> Deserialize<'de> for StateName
impl<'de> Deserialize<'de> for StateName
Source§fn deserialize<D>(
deserializer: D,
) -> Result<StateName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<StateName, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for StateName
Source§impl Ord for StateName
impl Ord for StateName
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for StateName
impl PartialOrd for StateName
Source§impl Serialize for StateName
impl Serialize for StateName
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for StateName
Auto Trait Implementations§
impl Forget for StateName
impl Freeze for StateName
impl Move for StateName
impl RefUnwindSafe for StateName
impl Send for StateName
impl Sync for StateName
impl Unpin for StateName
impl UnsafeUnpin for StateName
impl UnwindSafe for StateName
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