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

type Error: Error + Send + Sync + 'static[src]

Expand description

The error produced when the string is invalid

Loading content...

Required methods

fn normalize(s: &str) -> Result<Cow<'_, str>, Self::Error>[src]

Expand description

Validates and normalizes the borrowed input

Loading content...

Implementors

Loading content...