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