Skip to main content

is_rust_keyword

Function is_rust_keyword 

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

Is name a Rust keyword (strict, edition-2018+, edition-2024+, or reserved)?

Covers all editions up to 2024. See scripts/check-keywords.py for the maintenance script that diffs this list against the upstream rustc source.