Trait ReplacementStrategy

Source
pub trait ReplacementStrategy: Send + Sync {
    // Required method
    fn replace(
        &self,
        content: &str,
        old: &str,
        new: &str,
        replace_all: bool,
    ) -> ReplaceResult;
}
Expand description

Replacement strategy trait

Required Methods§

Source

fn replace( &self, content: &str, old: &str, new: &str, replace_all: bool, ) -> ReplaceResult

Implementors§