Skip to main content

parse_lit_str

Function parse_lit_str 

Source
fn parse_lit_str(nv: &MetaNameValue, field: &str) -> Result<String>
Expand description

Parse the value of a name = "..." meta item as a string literal.

Returns a compile error spanning the offending token when the RHS is not a &str literal. field is used in the diagnostic (e.g. "c_symbol").