Function syntax::parse::char_litUnstable [-] [+] [src]

pub fn char_lit(lit: &str) -> (char, isize)

Parse a string representing a character literal into its final form. Rather than just accepting/rejecting a given literal, unescapes it as well. Can take any slice prefixed by a character escape. Returns the character and the number of characters consumed.