pub struct Languages;
Expand description
An abstraction for iterating over all languages in the USB database.
use usb_ids::Languages;
for language in Languages::iter() {
println!("language: {}", language.name());
for dialect in language.dialects() {
println!("\tdialect: {}", dialect.name());
}
}
Implementations§
Auto Trait Implementations§
impl Freeze for Languages
impl RefUnwindSafe for Languages
impl Send for Languages
impl Sync for Languages
impl Unpin for Languages
impl UnwindSafe for Languages
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more