Type Alias usb_ids::Bias

source ·
pub type Bias = UsbId<BIAS_TAG, u8>;
Expand description

Represents physical descriptor bias type in the USB database.

use usb_ids::{Bias, FromId};
let bias = Bias::from_id(0x02).unwrap();
assert_eq!(bias.name(), "Left Hand");

Aliased Type§

struct Bias { /* private fields */ }

Trait Implementations§

source§

impl FromId<u8> for Bias

source§

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

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