public class RustLanguage extends Object
Canonical LanguageProfile factory and vocabulary definitions for Rust (.rs).
Includes Rust 2021/2024 keywords, primitive numeric and textual types (i8..i128, u8..u128, isize, usize, f32, f64, bool, char, str), standard prelude enum variants (Some, None, Ok, Err), nested block comments, and raw/byte/C string prefixes.
import klyn.code.rust
profile = RustLanguage.profile()
assert profile.id == "rust"
assert profile.isKeyword("impl")
assert profile.isType("usize")| Modifier and Type | Member | Description |
|---|---|---|
| public static | profileprofile() as LanguageProfile |
Returns the shared singleton LanguageProfile for Rust. |