pub trait KVCategorizer {
    // Required methods
    fn categorize(&self, key: Key) -> KVCategory;
    fn name(&self, key: Key) -> &'static str;

    // Provided method
    fn ignore(&self, key: Key) -> bool { ... }
}
Expand description

Structures implementing this trait are being used to categorize the KV values into one of the KVCategory.

Required Methods§

source

fn categorize(&self, key: Key) -> KVCategory

For a given key from KV decide which category it belongs to

source

fn name(&self, key: Key) -> &'static str

For a given key from KV return a name that should be printed for it

Provided Methods§

source

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

True if category of a given key is KVCategory::Ignore

Implementors§