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 validator that can verify a given is valid given certain preconditions
Associated Types
type Error: Error + Send + Sync + 'static
[src]
Expand description
The error produced when the string is invalid
Required methods
fn normalize(s: &str) -> Result<Cow<'_, str>, Self::Error>
[src]
Expand description
Validates a string according to a predetermined set of rules