pub struct RoleTag {
pub role: u8,
pub tag: &'static str,
pub aria: &'static str,
}Expand description
A role that maps onto a native semantic HTML element. On a generic shell the
role renders as RoleTag::tag; when the role is applied to a non-generic
component, RoleTag::aria is the ARIA fallback.
Fields§
§role: u8The ROLE enum code (see pathland_core::role).
tag: &'static strThe semantic HTML tag the role renders as on a generic shell.
aria: &'static strThe equivalent ARIA role value (fallback when no tag applies).
Auto Trait Implementations§
impl Forget for RoleTag
impl Freeze for RoleTag
impl Move for RoleTag
impl RefUnwindSafe for RoleTag
impl Send for RoleTag
impl Sync for RoleTag
impl Unpin for RoleTag
impl UnsafeUnpin for RoleTag
impl UnwindSafe for RoleTag
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