Function regex::quote
[−]
[src]
pub fn quote(text: &str) -> String
Escapes all regular expression meta characters in text
.
The string returned may be safely used as a literal in a regular expression.
pub fn quote(text: &str) -> String
Escapes all regular expression meta characters in text
.
The string returned may be safely used as a literal in a regular expression.
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).