pub struct WristIntentReducer { /* private fields */ }Expand description
Stateful reducer for wrist input debouncing and Intent assignment.
Implementations§
Source§impl WristIntentReducer
impl WristIntentReducer
Sourcepub fn with_timing(timing: WristInputTiming) -> Self
pub fn with_timing(timing: WristInputTiming) -> Self
Creates a reducer with explicit thresholds.
Sourcepub fn reduce<C: WristInputCapabilities + ?Sized>(
&mut self,
origin: Origin,
raw: WristRawInput,
profile: &C,
) -> Option<Expr>
pub fn reduce<C: WristInputCapabilities + ?Sized>( &mut self, origin: Origin, raw: WristRawInput, profile: &C, ) -> Option<Expr>
Reduces one wrist input to a standard Intent, or None for jitter,
debounced repeats, unsupported inputs, and meaningless patterns.
Trait Implementations§
Source§impl Clone for WristIntentReducer
impl Clone for WristIntentReducer
Source§fn clone(&self) -> WristIntentReducer
fn clone(&self) -> WristIntentReducer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WristIntentReducer
impl Debug for WristIntentReducer
Source§impl Default for WristIntentReducer
impl Default for WristIntentReducer
Source§fn default() -> WristIntentReducer
fn default() -> WristIntentReducer
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WristIntentReducer
impl RefUnwindSafe for WristIntentReducer
impl Send for WristIntentReducer
impl Sync for WristIntentReducer
impl Unpin for WristIntentReducer
impl UnsafeUnpin for WristIntentReducer
impl UnwindSafe for WristIntentReducer
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