pub enum Role {
None,
Button,
Toggle,
Slider,
TextInput,
Heading(u8),
Image,
Meter,
Group,
}Variants§
Implementations§
Source§impl Role
impl Role
Sourcepub fn for_kind(kind: PieceKind) -> Role
pub fn for_kind(kind: PieceKind) -> Role
The a11y role a built-in piece kind reports natively — the audit’s expectation when the
user hasn’t set an explicit .role(). Native controls already expose these, so Day records
them for a11y_audit (§14.2) rather than overriding the widget; only canvas/custom pieces
need Day to apply a role. Returns None for kinds with no inherent control role.
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