Trait aliri_braid::Normalizer[][src]

pub trait Normalizer {
    type Error: Error + Send + Sync + 'static;
    fn normalize(s: &str) -> Result<Cow<'_, str>, Self::Error>;
}
Expand description

A normalizer that can verify a given input is valid and performs necessary normalization

Associated Types

The error produced when the string is invalid

Required methods

Validates and normalizes the borrowed input

Implementors