[][src]Trait slog_glog_fmt::kv_categorizer::KVCategorizer

pub trait KVCategorizer {
    pub fn categorize(&self, key: Key) -> KVCategory;
pub fn name(&self, key: Key) -> &'static str; pub fn ignore(&self, key: Key) -> bool { ... } }

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

Required methods

pub fn categorize(&self, key: Key) -> KVCategory[src]

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

pub fn name(&self, key: Key) -> &'static str[src]

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

Loading content...

Provided methods

pub fn ignore(&self, key: Key) -> bool[src]

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

Loading content...

Implementors

impl KVCategorizer for ErrorCategorizer[src]

impl KVCategorizer for FacebookCategorizer[src]

impl KVCategorizer for InlineCategorizer[src]

Loading content...