pub trait Language {
fn name(&self) -> &'static str;
fn code(&self) -> &'static str;
}
Expand description
An abstraction over a language code providing ways to extract information as well as convert
Returns the language’s name
Returns the language’s corresponding language code as a &str
based on the underlying format