pub enum Role {
Show 14 variants
None,
Label,
Heading,
Button,
Link,
CheckBox,
Switch,
RadioButton,
Slider,
TextInput,
Image,
Tab,
ListItem,
ProgressBar,
}Expand description
An element’s semantic role (a subset aligned on AccessKit/ARIA roles: what a screen reader announces).
Variants§
None
An element with no role of its own (a layout container).
Label
Static text (label, paragraph).
Heading
A heading or title.
Button
An actionable button.
Link
A link.
CheckBox
A checkbox (checked state).
Switch
A switch (checked state).
RadioButton
A radio button (checked state).
Slider
A continuous-value slider (value / min / max).
TextInput
A text input field (value = its contents).
Image
An image or icon described by its label.
Tab
A tab.
ListItem
A list item.
ProgressBar
A progress bar (value).
Trait Implementations§
impl Copy for Role
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