Struct evdev::AttributeSetRef
source · pub struct AttributeSetRef<T> { /* private fields */ }
Available on Unix only.
Expand description
A collection of bits representing either device capability or state.
This can be used to iterate across all keys supported by a keyboard, or all buttons supported by a joystick. You can also query directly whether a specific bit is set (corresponding to whether a key or button is depressed).
Implementations§
source§impl<T: EvdevEnum> AttributeSetRef<T>
impl<T: EvdevEnum> AttributeSetRef<T>
Trait Implementations§
source§impl<T: EvdevEnum> Default for &AttributeSetRef<T>
impl<T: EvdevEnum> Default for &AttributeSetRef<T>
source§impl<T: EvdevEnum> Default for &mut AttributeSetRef<T>
impl<T: EvdevEnum> Default for &mut AttributeSetRef<T>
source§impl<'a, T: EvdevEnum> IntoIterator for &'a AttributeSetRef<T>
impl<'a, T: EvdevEnum> IntoIterator for &'a AttributeSetRef<T>
Auto Trait Implementations§
impl<T> Freeze for AttributeSetRef<T>
impl<T> RefUnwindSafe for AttributeSetRef<T>where
T: RefUnwindSafe,
impl<T> Send for AttributeSetRef<T>where
T: Send,
impl<T> !Sized for AttributeSetRef<T>
impl<T> Sync for AttributeSetRef<T>where
T: Sync,
impl<T> Unpin for AttributeSetRef<T>where
T: Unpin,
impl<T> UnwindSafe for AttributeSetRef<T>where
T: UnwindSafe,
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
source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Pipes by value. This is generally the method you want to use. Read more
source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
Borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
Mutably borrows
self
and passes that borrow into the pipe function. Read moresource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> R
source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
Borrows
self
, then passes self.as_ref()
into the pipe function.source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self
, then passes self.as_mut()
into the pipe
function.source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
Borrows
self
, then passes self.deref()
into the pipe function.