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

Method fetch_inherited_property

consumer/src/node.rs:517–529  ·  view source on GitHub ↗
(
        &self,
        getter: fn(&'a NodeData) -> Option<T>,
    )

Source from the content-addressed store, hash-verified

515 }
516
517 pub(crate) fn fetch_inherited_property<T>(
518 &self,
519 getter: fn(&'a NodeData) -> Option<T>,
520 ) -> Option<T> {
521 let mut node = *self;
522 loop {
523 let value = getter(node.data());
524 if value.is_some() {
525 return value;
526 }
527 node = node.parent()?;
528 }
529 }
530
531 pub(crate) fn fetch_inherited_flag(&self, getter: fn(&'a NodeData) -> bool) -> bool {
532 let mut node = *self;

Callers

nothing calls this directly

Calls 2

dataMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected