pub fn str_literal_to_char_literal(
sess: &impl HasSession,
expr: &Expr<'_>,
applicability: &mut Applicability,
ascii_only: bool,
) -> Option<String>
Expand description
Converts expr
to a char
literal if it’s a str
literal containing a single
character (or a single byte with ascii_only
)