#[non_exhaustive]pub enum A11yRole {
Show 28 variants
Window,
Group,
Heading,
Paragraph,
Button,
Checkbox,
Textbox,
MultilineTextbox,
Slider,
ComboBox,
List,
ListItem,
TabList,
Tab,
Table,
Row,
Cell,
Toolbar,
Menu,
MenuItem,
StatusBar,
Dialog,
Alert,
ProgressBar,
Link,
Separator,
Image,
Canvas,
}Expand description
The semantic roles the estate’s controls map onto. Deliberately a toolkit-neutral subset of the ARIA/accesskit role vocabulary — the lowering adapters pick the framework’s spelling.
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.
Window
Top-level window.
Group
Generic container.
Heading
Section heading.
Paragraph
Static text.
Button
Push button.
Checkbox
Toggle / tri-state checkbox.
Textbox
Single-line text entry.
MultilineTextbox
Multi-line text entry.
Slider
Numeric slider.
ComboBox
Dropdown / select.
List
List container.
ListItem
List item.
TabList
Tab strip.
Tab
One tab.
Table
Data table.
Row
Table row.
Cell
Table cell.
Toolbar
Toolbar.
Menu
Menu container.
MenuItem
Menu entry.
StatusBar
Status/alert region (live region).
Dialog
Dialog.
Alert
Blocking alert.
ProgressBar
Progress indicator.
Link
Link.
Separator
Separator.
Image
Image with alternatives.
Canvas
Canvas/surface region.
Trait Implementations§
impl Copy for A11yRole
impl Eq for A11yRole
impl StructuralPartialEq for A11yRole
Auto Trait Implementations§
impl Freeze for A11yRole
impl RefUnwindSafe for A11yRole
impl Send for A11yRole
impl Sync for A11yRole
impl Unpin for A11yRole
impl UnsafeUnpin for A11yRole
impl UnwindSafe for A11yRole
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