pub struct ExtendedUsage {
pub page: UsagePage,
pub id: Usage,
}Expand description
A Usage ID, that includes its parent Usage Page.
Fields§
§page: UsagePageThe Usage Page.
id: UsageThe Usage ID.
Implementations§
Source§impl ExtendedUsage
impl ExtendedUsage
Sourcepub fn to_integer(&self) -> u32
pub fn to_integer(&self) -> u32
Convert to a single integer containing both usage page and usage id.
The usage page will be in the upper 16 bits, and the usage id will be in the lower 16 bits.
Trait Implementations§
Source§impl Clone for ExtendedUsage
impl Clone for ExtendedUsage
impl Copy for ExtendedUsage
Source§impl Debug for ExtendedUsage
impl Debug for ExtendedUsage
Source§impl PartialEq for ExtendedUsage
impl PartialEq for ExtendedUsage
impl StructuralPartialEq for ExtendedUsage
Auto Trait Implementations§
impl Freeze for ExtendedUsage
impl RefUnwindSafe for ExtendedUsage
impl Send for ExtendedUsage
impl Sync for ExtendedUsage
impl Unpin for ExtendedUsage
impl UnsafeUnpin for ExtendedUsage
impl UnwindSafe for ExtendedUsage
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