pub trait KissReplace {
// Required method
fn replace_str(&self, input: &str) -> String;
// Provided methods
fn replace(&self, sources: Vec<String>) -> Vec<String> { ... }
fn replace_mut(&self, sources: &mut Vec<String>) { ... }
fn replace_paths(&self, paths: Vec<PathBuf>) -> Vec<PathBuf> { ... }
}Required Methods§
Sourcefn replace_str(&self, input: &str) -> String
fn replace_str(&self, input: &str) -> String
Replace @VAR@ in single string
Provided Methods§
Sourcefn replace_mut(&self, sources: &mut Vec<String>)
fn replace_mut(&self, sources: &mut Vec<String>)
Mutable string replacement (in-place, more alloc-efficient)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".