Function valence_build_utils::ident

source ·
pub fn ident<I: AsRef<str>>(s: I) -> Ident
Expand description

Parses a proc_macro2::Ident from a str. Rust keywords are prepended with underscores to make them valid identifiers.