Skip to main content

resolve

Function resolve 

Source
pub fn resolve(
    text: &str,
    own: Option<&str>,
    other: impl FnMut(&str) -> Option<String>,
) -> String
Expand description

Replaces {key} with own’s text and {key:<command>} with other(<command>)’s; a placeholder without an answer stays as it is.