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

Method fetch_inherited_flag

consumer/src/node.rs:531–543  ·  view source on GitHub ↗
(&self, getter: fn(&'a NodeData) -> bool)

Source from the content-addressed store, hash-verified

529 }
530
531 pub(crate) fn fetch_inherited_flag(&self, getter: fn(&'a NodeData) -> bool) -> bool {
532 let mut node = *self;
533 loop {
534 if getter(node.data()) {
535 return true;
536 }
537 if let Some(parent) = node.parent() {
538 node = parent;
539 } else {
540 return false;
541 }
542 }
543 }
544
545 pub fn is_text_input(&self) -> bool {
546 matches!(

Callers 1

is_hiddenMethod · 0.80

Calls 2

dataMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected