Skip to main content

RUST_KEYWORDS

Constant RUST_KEYWORDS 

Source
pub const RUST_KEYWORDS: &'static [&'static str];
Expand description

Rust reserved keywords (strict, reserved, and weak keywords from all editions).

This list covers every identifier that cannot be used as a bare identifier in Rust source code. When a serde-renamed field name (e.g. "type") is used as a Rust function parameter or struct-literal field, it must be written as a raw identifier (r#type) to avoid a compile error.