pub fn validate_identifier(name: &str) -> Result<()>Expand description
Rejects names that aren’t valid Rust identifiers, that collide with a
Rust keyword, or that look like one of this file’s own __NAME__-style
template placeholders - before they get interpolated into generated
source. Fail fast rather than emit unparseable (or, worse, silently
cross-substituted) code.