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

Method resolve_for_selection_with_context

platforms/atspi-common/src/node.rs:706–718  ·  view source on GitHub ↗
(&self, f: F)

Source from the content-addressed store, hash-verified

704 }
705
706 fn resolve_for_selection_with_context<F, T>(&self, f: F) -> Result<T>
707 where
708 for<'a> F: FnOnce(Node<'a>, &'a Tree, &Context) -> Result<T>,
709 {
710 self.resolve_with_context(|node, tree, context| {
711 let wrapper = NodeWrapper(&node);
712 if wrapper.supports_selection() {
713 f(node, tree, context)
714 } else {
715 Err(Error::UnsupportedInterface)
716 }
717 })
718 }
719
720 fn resolve_for_text_with_context<F, T>(&self, f: F) -> Result<T>
721 where

Callers 3

select_childMethod · 0.80
deselect_childMethod · 0.80

Calls 3

NodeWrapperClass · 0.70
resolve_with_contextMethod · 0.45
supports_selectionMethod · 0.45

Tested by

no test coverage detected