pub struct UsageId(/* private fields */);Expand description
The 16-bit Usage Id identifier, see Section 5.5 “Usages”.
The UsageId forms the lower 16 bits of a 32-bit Usage.
let up = UsagePage::from(0x01); // Generic Desktop
let uid = UsageId::from(0x02); // Mouse
let usage = Usage::from_page_and_id(up, uid);For known named usages see the hut crate.
Trait Implementations§
Source§impl PartialOrd for UsageId
impl PartialOrd for UsageId
impl Copy for UsageId
impl StructuralPartialEq for UsageId
Auto Trait Implementations§
impl Freeze for UsageId
impl RefUnwindSafe for UsageId
impl Send for UsageId
impl Sync for UsageId
impl Unpin for UsageId
impl UnwindSafe for UsageId
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more