Trait sayit::tag::Tag

source ·
pub trait Tag: DynClone + Debug + Send + Sync + Deserialize {
    // Required method
    fn generate<'a>(&self, m: &Match<'a>) -> Cow<'a, str>;
}
Expand description

Receives match and provides replacement

Required Methods§

source

fn generate<'a>(&self, m: &Match<'a>) -> Cow<'a, str>

Make suitable replacement

Implementors§