pub trait LanguageInfo {
type BaseLang;
// Required methods
fn get_lang() -> LANG;
fn get_lang_name() -> &'static str;
}Expand description
Static identification of a language code tag.
Implemented by every XxxCode type generated by the internal
mk_code! macro.
Required Associated Types§
Required Methods§
Sourcefn get_lang_name() -> &'static str
fn get_lang_name() -> &'static str
Returns the human-readable language name for this code tag.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".