pub struct LightNode {
pub id: u64,
pub role: A11yRole,
pub label: Option<String>,
pub description: Option<String>,
pub is_selected: bool,
pub children: Vec<LightNode>,
}Expand description
A simplified, dependency-free representation of an a11y tree node.
Used by callers that do not enable the a11y-table feature but still
want to inspect the logical structure produced by
build_table_a11y_tree. When a11y-table is enabled, the full
oxiui_accessibility::tree::A11yNode tree is also available via
build_table_a11y_full (requires a11y-table feature).
Fields§
§id: u64Sequential id (1-based).
role: A11yRoleAccessibility role of this node.
label: Option<String>Human-readable label (column names, cell text).
description: Option<String>Description text (e.g. "Row 1 Column 2", "Column 3 header").
is_selected: boolWhether this row is in the selected state.
children: Vec<LightNode>Child nodes in document order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LightNode
impl RefUnwindSafe for LightNode
impl Send for LightNode
impl Sync for LightNode
impl Unpin for LightNode
impl UnsafeUnpin for LightNode
impl UnwindSafe for LightNode
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more