Skip to main content

unescape_brackets

Function unescape_brackets 

Source
pub fn unescape_brackets(s: &str) -> Cow<'_, str>
Expand description

Unescape \[ and \] into literal [ and ]. Any other backslash is left untouched. Returns a borrow when there is nothing to unescape (the common case), so non-escaped field names never allocate.