Transformation

Trait Transformation 

Source
pub trait Transformation: Send + Sync {
    // Required methods
    fn transform<'a>(&self, input: &'a str) -> Cow<'a, str>;
    fn name(&self) -> &'static str;
}
Expand description

Trait for transformations.

Required Methods§

Source

fn transform<'a>(&self, input: &'a str) -> Cow<'a, str>

Apply the transformation.

Source

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

Get the transformation name.

Implementors§