Skip to content

Rust API Reference

The full Rust API documentation is generated from source with cargo doc.

Terminal window
cargo add xa11y
use xa11y::*;
let provider = create_provider()?;
let tree = provider.get_app_tree(
&AppTarget::ByName("Safari".to_string()),
&QueryOptions::default(),
)?;
for node in tree.query("button")? {
println!("{:?}", node.name);
}

Open Rust API Docs →