Skip to main content

is_rust_keyword

Function is_rust_keyword 

pub fn is_rust_keyword(name: &str) -> bool
Expand description

true if name is a Rust keyword that needs handling before it can be emitted as a Rust identifier — either raw-identifier escaping (see is_raw_escapable_keyword) or outright rejection (see is_unrepresentable_keyword).