pub struct ReportCount(/* private fields */);Expand description
Unsigned integer specifying the number of data fields for the item; determines how many fields are included in the report for this particular item (and consequently how many bits are added to the report).
Implementations§
Source§impl ReportCount
impl ReportCount
Sourcepub const PREFIX: u8 = 148u8
pub const PREFIX: u8 = 148u8
Prefix consists of tag(bit 7-4), type(bit 3-2) and size(bit 1-0).
The “size” part is set to 00 in this constant value.
Sourcepub unsafe fn new_unchecked(raw: &[u8]) -> Self
pub unsafe fn new_unchecked(raw: &[u8]) -> Self
Sourcepub fn new_with(data: &[u8]) -> Result<Self, HidError>
pub fn new_with(data: &[u8]) -> Result<Self, HidError>
Create an item with specific data.
NOTE: data size must be: 0, 1, 2 or 4.
Trait Implementations§
Source§impl AsRef<[u8]> for ReportCount
impl AsRef<[u8]> for ReportCount
Source§impl Clone for ReportCount
impl Clone for ReportCount
Source§fn clone(&self) -> ReportCount
fn clone(&self) -> ReportCount
Returns a duplicate 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 ReportCount
impl Debug for ReportCount
Source§impl Default for ReportCount
impl Default for ReportCount
Source§impl Display for ReportCount
impl Display for ReportCount
Source§impl PartialEq for ReportCount
impl PartialEq for ReportCount
impl Eq for ReportCount
impl StructuralPartialEq for ReportCount
Auto Trait Implementations§
impl Freeze for ReportCount
impl RefUnwindSafe for ReportCount
impl Send for ReportCount
impl Sync for ReportCount
impl Unpin for ReportCount
impl UnwindSafe for ReportCount
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