Skip to main content

SemanticElementLike

Trait SemanticElementLike 

Source
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§

Source

fn text(&self) -> Option<&str>

Source

fn role(&self) -> &str

Source

fn clickable(&self) -> bool

Source

fn bounds(&self) -> Bounds

Source

fn children(&self) -> &[Self]
where Self: Sized,

Implementations on Foreign Types§

Source§

impl SemanticElementLike for SemanticElement

Source§

fn text(&self) -> Option<&str>

Source§

fn role(&self) -> &str

Source§

fn clickable(&self) -> bool

Source§

fn bounds(&self) -> Bounds

Source§

fn children(&self) -> &[Self]

Implementors§