Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/scripts/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ impl Script {
&VALUES
}

/// Return the english name of the language, matching the enum variant name.
pub fn name(&self) -> &str {
match *self {
Script::Latin => "Latin",
Expand Down Expand Up @@ -112,6 +113,7 @@ impl Script {
}
}

/// Return all plausible languages for this script.
pub fn langs(&self) -> &[Lang] {
lang_mapping::script_langs(*self)
}
Expand Down