Function extract_name_override

Source
pub fn extract_name_override(value: &MetaValue, span: Span) -> Result<LitStr>
Expand description

Returns syn::LitStr value if it’s an “identifier-like” string.

§Note

The string is considered to be “identifier-like” if:

  • It begins with an alphabetic character, underscore or dollar sign
  • It only contains alphanumeric characters, underscores and dollar signs