pub trait Identifiers {
const KEYWORDS: &'static [&'static str];
// Required method
fn escape_keyword(keyword: &str) -> String;
// Provided method
fn ident(name: &str) -> String { ... }
}Expand description
The language’s names: its reserved words, and how a name spelled like one is made an identifier.
Required Associated Constants§
Required Methods§
Sourcefn escape_keyword(keyword: &str) -> String
fn escape_keyword(keyword: &str) -> String
keyword made an identifier.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".