[−]Struct usbd_hid_descriptors::MainItemSetting
MainItemSetting describes the bits which configure invariants on a MainItem.
Methods
impl MainItemSetting
pub fn is_constant(&self) -> bool
pub fn set_constant(&mut self, value: bool)
pub fn is_variable(&self) -> bool
pub fn set_variable(&mut self, value: bool)
pub fn is_relative(&self) -> bool
pub fn set_relative(&mut self, value: bool)
pub fn is_wrap(&self) -> bool
pub fn set_wrap(&mut self, value: bool)
pub fn is_non_linear(&self) -> bool
pub fn set_non_linear(&mut self, value: bool)
pub fn has_no_preferred_state(&self) -> bool
pub fn set_no_preferred_state(&mut self, value: bool)
pub fn has_null_state(&self) -> bool
pub fn set_has_null_state(&mut self, value: bool)
pub fn volatile(&self) -> bool
pub fn set_volatile(&mut self, value: bool)
Trait Implementations
impl<T> BitRange<T> for MainItemSetting where
u8: BitRange<T>,
u8: BitRange<T>,
fn bit_range(&self, msb: usize, lsb: usize) -> T
fn set_bit_range(&mut self, msb: usize, lsb: usize, value: T)
impl Clone for MainItemSetting
[src]
fn clone(&self) -> MainItemSetting
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for MainItemSetting
[src]
Auto Trait Implementations
impl RefUnwindSafe for MainItemSetting
impl Send for MainItemSetting
impl Sync for MainItemSetting
impl Unpin for MainItemSetting
impl UnwindSafe for MainItemSetting
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Bit for T where
T: BitRange<u8>,
[src]
T: BitRange<u8>,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,