(&self, f: F)
| 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 |
no test coverage detected