Skip to main content

read_static_string

Function read_static_string 

Source
pub fn read_static_string(expr: &Expr) -> Option<String>
Expand description

Reads a fully-static string from an expression: a string literal, or a template literal with a single quasi and no interpolations.