regex_syntax

Function escape_into

Source
pub fn escape_into(text: &str, buf: &mut String)
Expand description

Escapes all meta characters in text and writes the result into buf.

This will append escape characters into the given buffer. The characters that are appended are safe to use as a literal in a regular expression.