pub trait SemanticElementLike {
// Required methods
fn text(&self) -> Option<&str>;
fn role(&self) -> &str;
fn clickable(&self) -> bool;
fn bounds(&self) -> Bounds;
fn children(&self) -> &[Self]
where Self: Sized;
}Expand description
Generic semantic element trait for tree traversal This allows the helpers to work with both cranpose::SemanticElement and similar types
Required Methods§
fn text(&self) -> Option<&str>
fn role(&self) -> &str
fn clickable(&self) -> bool
fn bounds(&self) -> Bounds
fn children(&self) -> &[Self]where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".