pub enum Role {
Show 33 variants
Slider,
SpinButton,
ProgressBar,
Separator,
Group,
Main,
Banner,
ContentInfo,
Section,
Navigation,
List,
ListItem,
Status,
Alert,
Table,
Grid,
GridCell,
Tree,
TreeItem,
Row,
ColumnHeader,
Cell,
Dialog,
AlertDialog,
Tooltip,
TabList,
TabPanel,
RadioGroup,
Toolbar,
Menu,
Menubar,
Listbox,
Heading(u8),
}Expand description
Structural roles belong to View. Other widgets keep their intrinsic control/text/image semantics rather than impersonating unrelated widgets.
Variants§
Slider
Interactive numeric range control; finite configuration is required.
SpinButton
Intrinsic editable numeric input; use spinbutton metadata on Input.
ProgressBar
Read-only numeric or indeterminate progress, never a range input.
Separator
Passive document boundary; resizing/focus belongs to a future splitter.
Group
Main
Banner
ContentInfo
Section
List
ListItem
Status
Alert
Table
Read-only tabular data; rows contain column headers or cells.
Grid
GridCell
Tree
TreeItem
Row
ColumnHeader
Cell
Dialog
A named dialog. Modality and focus management belong to the host.
AlertDialog
A modal decision with an explicit safe initial action.
Tooltip
Passive supplemental description; its descendants cannot be interactive.
TabList
TabPanel
RadioGroup
Toolbar
Menu
Menubar
Listbox
Heading(u8)
Trait Implementations§
impl Copy for Role
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Forget for Role
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