You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To implement this, a new trait like this could be added:
pubtraitReportSize{constBYTES_COUNT:usize;}
and then an implementation of this trait is generated for report types automatically by #[gen_hid_descriptor]. I'm not sure if there needs to be two associated constants, one for input and output, or if they're always the same size and so one associated constant would suffice.
This would be useful for automatically statically allocating buffers via the type system instead of having to hard-code magic numbers.
The text was updated successfully, but these errors were encountered:
To implement this, a new trait like this could be added:
and then an implementation of this trait is generated for report types automatically by
#[gen_hid_descriptor]
. I'm not sure if there needs to be two associated constants, one for input and output, or if they're always the same size and so one associated constant would suffice.This would be useful for automatically statically allocating buffers via the type system instead of having to hard-code magic numbers.
The text was updated successfully, but these errors were encountered: