Skip to main content

KVFilter

Trait KVFilter 

Source
pub trait KVFilter {
    // Required method
    fn is_accepted(&self, key: &Key) -> bool;
}
Expand description

Key-value pair filter.

Required Methods§

Source

fn is_accepted(&self, key: &Key) -> bool

Check if a given key should be accepted.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl KVFilter for AcceptAll

Source§

impl<T> KVFilter for T
where T: Fn(&Key) -> bool,