pub type Language = UsbIdWithChildren<u16, Dialect>;
Expand description
Represents a language type in the USB database.
Languages have a language ID, a pretty name, and a list of associated
Dialect
s.
use usb_ids::{Language, FromId};
let language = Language::from_id(0x000c).unwrap();
assert_eq!(language.name(), "French");
for dialect in language.dialects() {
println!("dialect: {}", dialect.name());
}
Aliased Type§
struct Language { /* private fields */ }