Skip to main content

create_string_lit

Function create_string_lit 

Source
pub fn create_string_lit(value: &str) -> Lit
Expand description

Creates a Lit::Str from a string.

§Arguments

  • value - The string to create a literal for

§Example

let lit_str = create_string_lit("value");