[][src]Struct derico::debouncer::Debouncer

pub struct Debouncer<T, S> { /* fields omitted */ }

Implementations

impl<T, S> Debouncer<T, S> where
    T: PartialEq + Copy,
    S: One + Add<Output = S> + PartialEq + PartialOrd + Copy
[src]

pub fn new(threshold: S, inital_state: T) -> Self[src]

pub fn update(&mut self, state: T) -> Option<Edge<T>>[src]

pub fn is_state(&self, state: T) -> bool[src]

Trait Implementations

impl<T: Debug, S: Debug> Debug for Debouncer<T, S>[src]

Auto Trait Implementations

impl<T, S> RefUnwindSafe for Debouncer<T, S> where
    S: RefUnwindSafe,
    T: RefUnwindSafe
[src]

impl<T, S> Send for Debouncer<T, S> where
    S: Send,
    T: Send
[src]

impl<T, S> Sync for Debouncer<T, S> where
    S: Sync,
    T: Sync
[src]

impl<T, S> Unpin for Debouncer<T, S> where
    S: Unpin,
    T: Unpin
[src]

impl<T, S> UnwindSafe for Debouncer<T, S> where
    S: UnwindSafe,
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.