pub enum ShellKind {
Generic,
Native,
Other,
}Expand description
How a role interacts with an element’s shell. Decided from the component when known; the DOM client derives it from the element’s tag when hydrating (it has no component for SSR-provided nodes).
Variants§
Generic
A generic div/span shell — the only shells a semantic role retags.
Native
A native control element (<button>, <input>, …) that conveys its own
role — never retagged, never given an ARIA role from ROLE.
Other
Any other element (composite shells, unknown) — never retagged, but an
ARIA role attribute is emitted.
Trait Implementations§
impl Copy for ShellKind
impl Eq for ShellKind
impl StructuralPartialEq for ShellKind
Auto Trait Implementations§
impl Freeze for ShellKind
impl RefUnwindSafe for ShellKind
impl Send for ShellKind
impl Sync for ShellKind
impl Unpin for ShellKind
impl UnsafeUnpin for ShellKind
impl UnwindSafe for ShellKind
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