Struct signalo_filters::filter::classify::Debounce [−][src]
pub struct Debounce<T, U> { /* fields omitted */ }
A Debounce filter.
Methods
impl<T, U> Debounce<T, U> where
T: Copy + Zero,
[src]
impl<T, U> Debounce<T, U> where
T: Copy + Zero,
pub fn new(threshold: usize, predicate: T, outputs: [U; 2]) -> Self
[src]
pub fn new(threshold: usize, predicate: T, outputs: [U; 2]) -> Self
Creates a new Schmitt
filter with given threshold
, predicate
and outputs
([off, on]
).
Trait Implementations
impl<T: Clone, U: Clone> Clone for Debounce<T, U>
[src]
impl<T: Clone, U: Clone> Clone for Debounce<T, U>
fn clone(&self) -> Debounce<T, U>
[src]
fn clone(&self) -> Debounce<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: Debug, U: Debug> Debug for Debounce<T, U>
[src]
impl<T: Debug, U: Debug> Debug for Debounce<T, U>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T, U> Stateful for Debounce<T, U>
[src]
impl<T, U> Stateful for Debounce<T, U>
impl<T, U> StatefulUnsafe for Debounce<T, U>
[src]
impl<T, U> StatefulUnsafe for Debounce<T, U>
unsafe fn state(&self) -> &Self::State
[src]
unsafe fn state(&self) -> &Self::State
Returns a mutable reference to the internal state of the filter.
unsafe fn state_mut(&mut self) -> &mut Self::State
[src]
unsafe fn state_mut(&mut self) -> &mut Self::State
Returns a mutable reference to the internal state of the filter.
impl<T, U> InitialState<()> for Debounce<T, U>
[src]
impl<T, U> InitialState<()> for Debounce<T, U>
fn initial_state(_: ()) -> Self::State
[src]
fn initial_state(_: ()) -> Self::State
Returns the filter's initial state for a given parameter.
impl<T, U> Resettable for Debounce<T, U>
[src]
impl<T, U> Resettable for Debounce<T, U>
impl<T, U> Filter<T> for Debounce<T, U> where
T: Copy + PartialEq<T>,
U: Copy,
[src]
impl<T, U> Filter<T> for Debounce<T, U> where
T: Copy + PartialEq<T>,
U: Copy,