Skip to main content

substitute

Function substitute 

Source
pub fn substitute(
    config: &str,
    variable: &str,
    item: &JsValue,
) -> Option<String>
Expand description

config with the loop variable replaced by this item’s literals; None when a member is missing or not a string, or the variable is still used afterwards.