Skip to main content

placeholder_ident_suffix

Function placeholder_ident_suffix 

Source
pub(crate) fn placeholder_ident_suffix(placeholder: &str) -> String
Expand description

Derive a safe Rust ident from a write-time placeholder string.

Strips surrounding underscores and turns every . into _, so a placeholder like .__MX_MATCH_ARG_CHOICES_foo_bar__ becomes an ident suffix that quotes cleanly in emitted code.