Struct InspectionNode
pub struct InspectionNode {
pub path: String,
pub widget: String,
pub test_id: Option<String>,
pub focusable: bool,
pub rect: [f64; 4],
pub child_clip: Option<[f64; 4]>,
pub layout: Option<LayoutInfo>,
pub semantics: Option<AccessNode>,
pub children: Vec<InspectionNode>,
}Expand description
One node in a developer inspection snapshot.
semantics is the exact toolkit AccessNode used to build the exported
AccessKit tree. Its nested children include virtualized semantic rows and
cells that do not have a retained widget of their own.
Fields§
§path: String§widget: String§test_id: Option<String>§focusable: boolWhether the retained widget participates in keyboard focus traversal. Kept in the inspection format so an omitted semantic node cannot hide an interactive control from the accessibility audit.
rect: [f64; 4][x, y, width, height] in logical window coordinates.
child_clip: Option<[f64; 4]>Absolute logical clip applied to children, if the widget clips them.
layout: Option<LayoutInfo>Effective policy and authoring origins, when supplied by the widget.
semantics: Option<AccessNode>§children: Vec<InspectionNode>Trait Implementations§
§impl Debug for InspectionNode
impl Debug for InspectionNode
§impl Serialize for InspectionNode
impl Serialize for InspectionNode
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for InspectionNode
impl RefUnwindSafe for InspectionNode
impl Send for InspectionNode
impl Sync for InspectionNode
impl Unpin for InspectionNode
impl UnsafeUnpin for InspectionNode
impl UnwindSafe for InspectionNode
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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