Trait zenoh_keyexpr::key_expr::intersect::Intersector

source ·
pub trait Intersector<Left, Right> {
    // Required method
    fn intersect(&self, left: Left, right: Right) -> bool;
}
Expand description

The trait used to implement key expression intersectors.

Note that Intersector<&keyexpr, &keyexpr> is auto-implemented with quickchecks (streq->true, strne&nowild->false) for any Intersector<&[u8], &[u8]>. Implementing Intersector<&[u8], &[u8]> is the recommended way to implement intersectors.

Required Methods§

source

fn intersect(&self, left: Left, right: Right) -> bool

Implementors§

source§

impl Intersector<&[u8], &[u8]> for ClassicIntersector

source§

impl<T: for<'a> Intersector<&'a [u8], &'a [u8]> + for<'a> Intersector<NoSubWilds<&'a [u8]>, NoSubWilds<&'a [u8]>>> Intersector<&keyexpr, &keyexpr> for T