format_field_ident

Function format_field_ident 

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

Formats the passed name as field name.

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