pub struct LogicalMaximum(/* private fields */);Expand description
Extent value in logical units. This is the maximum value that a variable or array item will report.
For example, a mouse reporting x position values from 0 to 128 would have a Logical Minimum of 0 and a Logical Maximum of 128.
Implementations§
Source§impl LogicalMaximum
impl LogicalMaximum
Sourcepub const PREFIX: u8 = 36u8
pub const PREFIX: u8 = 36u8
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 LogicalMaximum
impl AsRef<[u8]> for LogicalMaximum
Source§impl Clone for LogicalMaximum
impl Clone for LogicalMaximum
Source§fn clone(&self) -> LogicalMaximum
fn clone(&self) -> LogicalMaximum
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 LogicalMaximum
impl Debug for LogicalMaximum
Source§impl Default for LogicalMaximum
impl Default for LogicalMaximum
Source§impl Display for LogicalMaximum
impl Display for LogicalMaximum
Source§impl PartialEq for LogicalMaximum
impl PartialEq for LogicalMaximum
impl Eq for LogicalMaximum
impl StructuralPartialEq for LogicalMaximum
Auto Trait Implementations§
impl Freeze for LogicalMaximum
impl RefUnwindSafe for LogicalMaximum
impl Send for LogicalMaximum
impl Sync for LogicalMaximum
impl Unpin for LogicalMaximum
impl UnwindSafe for LogicalMaximum
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