Trait KeyMayMatch

Source
pub trait KeyMayMatch {
    // Required method
    fn key_may_match(&self, key_: &Slice, filter: &Slice) -> bool;
}

Required Methods§

Source

fn key_may_match(&self, key_: &Slice, filter: &Slice) -> bool

| “filter” contains the data appended by | a preceding call to CreateFilter() on this | class. This method must return true if the | key was in the list of keys passed to | CreateFilter(). | | This method may return true or false if the | key was not on the list, but it should aim to | return false with a high probability.

Implementors§