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