Skip to main content

Variables

Type Alias Variables 

Source
pub type Variables = HashMap<String, String>;

Aliased Type§

pub struct Variables { /* private fields */ }

Trait Implementations§

Source§

impl KissReplace for Variables

Source§

fn replace_str(&self, input: &str) -> String

Replace @VAR@ in single string
Source§

fn replace(&self, sources: Vec<String>) -> Vec<String>

Immutable string replacement
Source§

fn replace_mut(&self, sources: &mut Vec<String>)

Mutable string replacement (in-place, more alloc-efficient)
Source§

fn replace_paths(&self, paths: Vec<PathBuf>) -> Vec<PathBuf>

Replace @VAR@ in paths