pub enum CollectionItem {
Physical,
Application,
Logical,
Report,
NamedArray,
UsageSwitch,
UsageModifier,
Reserved {
value: u8,
},
VendorDefined {
value: u8,
},
}
Expand description
See Section 6.2.2.6. A collection groups several items together.
A Collection item identifies a relationship between two or more data (Input, Output, or Feature.) For example, a mouse could be described as a collection of two to four data (x, y, button 1, button 2). While the Collection item opens a collection of data, the MainItem::EndCollection item closes a collection.
Variants§
Trait Implementations§
Source§impl Clone for CollectionItem
impl Clone for CollectionItem
Source§fn clone(&self) -> CollectionItem
fn clone(&self) -> CollectionItem
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CollectionItem
impl Debug for CollectionItem
Source§impl From<&CollectionItem> for u8
impl From<&CollectionItem> for u8
Source§fn from(c: &CollectionItem) -> u8
fn from(c: &CollectionItem) -> u8
Converts to this type from the input type.
Source§impl From<CollectionItem> for ItemType
impl From<CollectionItem> for ItemType
Source§fn from(item: CollectionItem) -> ItemType
fn from(item: CollectionItem) -> ItemType
Converts to this type from the input type.
Source§impl From<u8> for CollectionItem
impl From<u8> for CollectionItem
Source§fn from(v: u8) -> CollectionItem
fn from(v: u8) -> CollectionItem
Converts to this type from the input type.
Source§impl PartialEq for CollectionItem
impl PartialEq for CollectionItem
Source§impl TryFrom<&[u8]> for CollectionItem
impl TryFrom<&[u8]> for CollectionItem
impl Copy for CollectionItem
impl StructuralPartialEq for CollectionItem
Auto Trait Implementations§
impl Freeze for CollectionItem
impl RefUnwindSafe for CollectionItem
impl Send for CollectionItem
impl Sync for CollectionItem
impl Unpin for CollectionItem
impl UnwindSafe for CollectionItem
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