pub struct Semantics {
pub role: Role,
pub label: Option<String>,
pub value: Option<String>,
pub heading_level: Option<u8>,
pub href: Option<String>,
}Expand description
A declarative semantics entry (D099). Widgets push these during paint via
PaintCtx::semantics; the frame derives the accessibility tree from the
render tree. Roles come from rosace_core::Role.
heading_level/href (D107/Phase 25) mirror rosace_core::SemanticNode’s
fields of the same name — carried through unchanged by collect_semantics.
Fields§
§role: Role§label: Option<String>§value: Option<String>§heading_level: Option<u8>§href: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Semantics
impl RefUnwindSafe for Semantics
impl Send for Semantics
impl Sync for Semantics
impl Unpin for Semantics
impl UnsafeUnpin for Semantics
impl UnwindSafe for Semantics
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