pub enum ScopeReason {
NotShowing,
Disabled,
}Expand description
Why a scope’s focusables are out of reach, which the keyboard does not care about and a screen reader does.
Tab treats the two the same — neither is a stop — but they are opposite things to say out loud. A control inside a closed dialog is not there; a disabled one is there and unavailable, and a reader that omitted it would leave the user wondering where the button went.
Variants§
Trait Implementations§
Source§impl Clone for ScopeReason
impl Clone for ScopeReason
Source§fn clone(&self) -> ScopeReason
fn clone(&self) -> ScopeReason
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 moreimpl Copy for ScopeReason
Source§impl Debug for ScopeReason
impl Debug for ScopeReason
impl Eq for ScopeReason
Source§impl PartialEq for ScopeReason
impl PartialEq for ScopeReason
impl StructuralPartialEq for ScopeReason
Auto Trait Implementations§
impl Freeze for ScopeReason
impl RefUnwindSafe for ScopeReason
impl Send for ScopeReason
impl Sync for ScopeReason
impl Unpin for ScopeReason
impl UnsafeUnpin for ScopeReason
impl UnwindSafe for ScopeReason
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