Struct usb_ids::HidUsagePages
source · pub struct HidUsagePages;
Expand description
An abstraction for iterating over all HID usage pages in the USB database.
use usb_ids::HidUsagePages;
for page in HidUsagePages::iter() {
println!("page: {}", page.name());
for usage in page.usages() {
println!("\tusage: {}", usage.name());
}
}
Implementations§
source§impl HidUsagePages
impl HidUsagePages
sourcepub fn iter() -> impl Iterator<Item = &'static HidUsagePage>
pub fn iter() -> impl Iterator<Item = &'static HidUsagePage>
Returns an iterator over all HID usage pages in the USB database.
Auto Trait Implementations§
impl Freeze for HidUsagePages
impl RefUnwindSafe for HidUsagePages
impl Send for HidUsagePages
impl Sync for HidUsagePages
impl Unpin for HidUsagePages
impl UnwindSafe for HidUsagePages
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