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

pub 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.