sophia_api/term/matcher/
_any.rs

1use super::*;
2
3#[derive(Clone, Copy, Debug)]
4/// A universal matcher: it matches any [`Term`] or [`GraphName`] (even the default graph).
5pub struct Any;
6
7impl TermMatcher for Any {
8    type Term = SimpleTerm<'static>; // not actually used
9
10    fn matches<T2: Term + ?Sized>(&self, _: &T2) -> bool {
11        true
12    }
13}