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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".