Function rustc_lexer::unescape::unescape_literal
source · pub fn unescape_literal<F>(src: &str, mode: Mode, callback: &mut F)Expand description
Takes a contents of a literal (without quotes) and produces a sequence of escaped characters or errors.
Values are returned by invoking callback. For Char and Byte modes,
the callback will be called exactly once.