MCPcopy Create free account
hub / github.com/AccessKit/accesskit / locate_node

Method locate_node

consumer/src/tree.rs:570–578  ·  view source on GitHub ↗
(&self, node_id: NodeId)

Source from the content-addressed store, hash-verified

568 }
569
570 pub fn locate_node(&self, node_id: NodeId) -> Option<(LocalNodeId, TreeId)> {
571 if !self.has_node(node_id) {
572 return None;
573 }
574 let (local_id, tree_index) = node_id.to_components();
575 self.tree_index_map
576 .get_id(tree_index)
577 .map(|tree_id| (local_id, tree_id))
578 }
579}
580
581pub trait ChangeHandler {

Callers 15

locateMethod · 0.80
do_action_internalMethod · 0.80
scroll_to_pointMethod · 0.80
select_childMethod · 0.80
deselect_childMethod · 0.80
set_caret_offsetMethod · 0.80
remove_selectionMethod · 0.80
set_selectionMethod · 0.80
scroll_substring_toMethod · 0.80
SelectMethod · 0.80

Calls 4

has_nodeMethod · 0.80
to_componentsMethod · 0.80
mapMethod · 0.80
get_idMethod · 0.80

Tested by

no test coverage detected