Skip to main content

Normalizer

Trait Normalizer 

Source
pub trait Normalizer: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn normalize<'a>(&self, section: &str, data: &'a [u8]) -> Cow<'a, [u8]>;
}

Required Methods§

Source

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

Source

fn normalize<'a>(&self, section: &str, data: &'a [u8]) -> Cow<'a, [u8]>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§