Function varsun::substitute
[−]
[src]
pub fn substitute<F>(src: &str, mapfn: F) -> String where F: Fn(&str) -> Option<String>
Parse src string and replace found variables with mapfn
result.
This function is an proxy function. Call substitute
function in mswin
module if platform is
windows, otherwise call posix
implemntation.