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

Method parent

consumer/src/node.rs:119–122  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

117 }
118
119 pub fn parent(&self) -> Option<Node<'a>> {
120 self.parent_id()
121 .map(|id| self.tree_state.node_by_id(id).unwrap())
122 }
123
124 pub fn filtered_parent(&self, filter: &impl Fn(&Node) -> FilterResult) -> Option<Node<'a>> {
125 let mut current = self.parent()?;

Callers 11

common_filterFunction · 0.45
active_dialogMethod · 0.45
next_filtered_siblingFunction · 0.45
filtered_parentMethod · 0.45
is_descendant_ofMethod · 0.45
transformMethod · 0.45
relative_transformMethod · 0.45
fetch_inherited_flagMethod · 0.45
liveMethod · 0.45

Calls 3

mapMethod · 0.80
node_by_idMethod · 0.80
parent_idMethod · 0.45

Tested by

no test coverage detected