Type Alias HidItemType

Source
pub type HidItemType = UsbId<HID_TYPE_TAG, u8>;
Expand description

Represents a HID descriptor item type in the USB database.

use usb_ids::{HidItemType, FromId};
let hid_item_type = HidItemType::from_id(0xb4).unwrap();
assert_eq!(hid_item_type.name(), "Pop");

Aliased Type§

pub struct HidItemType { /* private fields */ }

Trait Implementations§

Source§

impl FromId<u8> for HidItemType

Source§

fn from_id(id: u8) -> Option<&'static Self>

Returns the entity corresponding to id, or None if none exists.