pub enum Role {
Show 23 variants
Application,
Region,
Dialog,
Alert,
Status,
List,
ListItem,
Menu,
MenuItem,
Button,
Checkbox,
Radio,
Tab,
Textbox,
Heading,
Text,
ProgressBar,
Separator,
Scrollbar,
Table,
Row,
Cell,
Generic,
}Expand description
A semantic role. ARIA-aligned and closed: unknown roles fail validation.
Variants§
Application
The application as a whole.
Region
A grouping container with no stronger meaning.
Dialog
A dialog, modal or not.
Alert
An urgent message.
Status
A non-urgent status message.
List
A collection of items.
ListItem
One entry in a list.
Menu
A menu of commands.
MenuItem
One command in a menu.
Button
An activatable control.
Checkbox
A two- or three-state toggle.
Radio
One option in a mutually exclusive set.
Tab
One tab in a tab strip.
Textbox
An editable text field.
Heading
A section heading.
Text
Static text.
ProgressBar
Progress towards completion.
Separator
A visual divider.
Scrollbar
A scroll position indicator.
Table
A grid of rows and cells.
Row
One row of a table.
Cell
One cell of a table row.
Generic
No more specific role applies.
Trait Implementations§
impl Copy for Role
Source§impl<'de> Deserialize<'de> for Role
impl<'de> Deserialize<'de> for Role
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnsafeUnpin for Role
impl UnwindSafe for Role
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