hid_types/id/collection.rs
1//! Collection types.
2
3use num_enum::{IntoPrimitive, TryFromPrimitive};
4
5use crate::Ident;
6
7/// A known __Collection__ type.
8#[expect(missing_docs)]
9#[derive(Clone, Copy, Debug, PartialEq, TryFromPrimitive, IntoPrimitive)]
10#[repr(u8)]
11pub enum KnownCollectionType {
12 Physical = 0,
13 Application = 1,
14 Logical = 2,
15 Report = 3,
16 NamedArray = 4,
17 UsageSwitch = 5,
18 UsageModifier = 6,
19}
20
21/// A __Collection__ type.
22pub type CollectionType = Ident<KnownCollectionType, u8>;