Struct rusb::Language [−][src]
pub struct Language { /* fields omitted */ }
Expand description
A language used to read string descriptors from USB devices.
A language consists of a primary language and a sub language. Primary languages are language families, such as English or Spanish. Sub languages identify a dialect of the primary language. The dialect may be based on regional differences (United States English compared to United Kindgdom English), writing systems (Cyrillic compared to Latin), or age (Modern compared to Traditional). Each primary language has its own set of sub languages.
Implementations
Returns the language’s 16-bit LANGID
.
Each language’s LANGID
is defined by the USB forum
http://www.usb.org/developers/docs/USB_LANGIDs.pdf.
Returns the primary language.
Returns the sub language.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Language
impl UnwindSafe for Language
Blanket Implementations
Mutably borrows from an owned value. Read more