Skip to main content

Normalizer

Trait Normalizer 

Source
pub trait Normalizer:
    Send
    + Sync
    + 'static {
    // Required methods
    fn key(&self) -> &'static str;
    fn fold(&self, text: &str) -> String;
}
Expand description

One text fold, applied to both the query and any stored value.

key names the fold in a chain’s fingerprint, so it must stay stable once a deployment has folded data with it.

Required Methods§

Source

fn key(&self) -> &'static str

Source

fn fold(&self, text: &str) -> String

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§