Type Alias usb_ids::HidCountryCode

source ·
pub type HidCountryCode = UsbId<HCC_TAG, u8>;
Expand description

Represents a HID descriptor country code in the USB database.

use usb_ids::{HidCountryCode, FromId};
let hid_country_code = HidCountryCode::from_id(0x29).unwrap();
assert_eq!(hid_country_code.name(), "Switzerland");

Aliased Type§

struct HidCountryCode { /* private fields */ }

Trait Implementations§

source§

impl FromId<u8> for HidCountryCode

source§

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

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