pub struct AccessNode {
pub role: Role,
pub name: String,
pub bounds: Rect,
pub focused: bool,
pub children: Vec<AccessNode>,
}Expand description
A node in the accessibility tree.
Fields§
§role: Role§name: StringThe accessible name (a control’s label, or the text itself).
bounds: Rect§focused: boolWhether this node currently holds keyboard focus.
children: Vec<AccessNode>Implementations§
Source§impl AccessNode
impl AccessNode
Sourcepub fn descendants(&self) -> Vec<&AccessNode>
pub fn descendants(&self) -> Vec<&AccessNode>
Depth-first iterator visiting this node and all descendants.
Trait Implementations§
Source§impl Clone for AccessNode
impl Clone for AccessNode
Source§fn clone(&self) -> AccessNode
fn clone(&self) -> AccessNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccessNode
impl Debug for AccessNode
Source§impl PartialEq for AccessNode
impl PartialEq for AccessNode
Source§fn eq(&self, other: &AccessNode) -> bool
fn eq(&self, other: &AccessNode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessNode
Auto Trait Implementations§
impl Freeze for AccessNode
impl RefUnwindSafe for AccessNode
impl Send for AccessNode
impl Sync for AccessNode
impl Unpin for AccessNode
impl UnsafeUnpin for AccessNode
impl UnwindSafe for AccessNode
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