Skip to main content

substitute

Function substitute 

Source
pub fn substitute(
    arena: &AstArena,
    tokens: &[u32],
    scope: &Rc<dyn VariableScope>,
    descendant: bool,
) -> Option<String>
Expand description

render tokens, the var() functions that reference a private variable replaced by a copy of the variable value, the custom function calls replaced by their result when the scope evaluates them. None when a variable is invalid and var() has no fallback: the value is not valid