RustLanguage
classin packageklyn.code.rust
public class RustLanguage extends Object
└ RustLanguage

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.

Example
import klyn.code.rust

profile = RustLanguage.profile()
assert profile.id == "rust"
assert profile.isKeyword("impl")
assert profile.isType("usize")
Inherited Properties
propertyInherited Properties from Object: type
Methods
Modifier and Type Member Description
public static profile
profile() as LanguageProfile
Returns the shared singleton LanguageProfile for Rust.
Inherited Methods
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml