pub struct States {
pub disabled: bool,
pub focused: bool,
pub selected: bool,
pub expanded: bool,
pub required: bool,
pub invalid: bool,
pub hidden: bool,
pub modal: bool,
pub checked: Option<TriState>,
}Expand description
Node state flags.
Fields§
§disabled: boolDisabled.
focused: boolFocused (at most one per tree — audited).
selected: boolSelected.
expanded: boolExpanded (collapsible containers).
required: boolRequired (form input).
invalid: boolInvalid (form input with an error).
Hidden from the a11y tree (still present for focus management).
modal: boolModal (blocks sibling interaction).
checked: Option<TriState>Checkbox value.
Trait Implementations§
impl Copy for States
impl Eq for States
impl StructuralPartialEq for States
Auto Trait Implementations§
impl Freeze for States
impl RefUnwindSafe for States
impl Send for States
impl Sync for States
impl Unpin for States
impl UnsafeUnpin for States
impl UnwindSafe for States
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