format_variant_ident

Function format_variant_ident 

Source
pub fn format_variant_ident(name: &Name, display_name: Option<&str>) -> Ident
Expand description

Formats the passed name as variant name.

Will format the passed name as variant name if no display_name was passed as well. If a display_name was passed, this one will be formatted as variant name instead.