Skip to main content

apply_aliases

Function apply_aliases 

Source
pub fn apply_aliases<'a>(
    text: &'a str,
    aliases: &[(String, String)],
) -> Cow<'a, str>
Expand description

Show the real file’s name in place of a synthetic one in text. Only a whole file name is replaced, never part of a longer one or of other text.