Type Alias usb_ids::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§

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.