darling::util::parse_expr

Function preserve_str_literal

source
pub fn preserve_str_literal(meta: &Meta) -> Result<Expr, Error>
Expand description

Parse a Meta to an Expr; if the value is a string literal, the emitted expression will be a string literal.