Struct signalo_filters::filter::classify::Schmitt [−][src]
pub struct Schmitt<T, U> { /* fields omitted */ }
A Schmitt trigger filter.
Methods
impl<T, U> Schmitt<T, U> where
U: Clone,
[src]
impl<T, U> Schmitt<T, U> where
U: Clone,
pub fn new(thresholds: [T; 2], outputs: [U; 2]) -> Self
[src]
pub fn new(thresholds: [T; 2], outputs: [U; 2]) -> Self
Creates a new Schmitt
filter with given thresholds
([low, high]
) and outputs
([off, on]
).
Trait Implementations
impl<T: Clone, U: Clone> Clone for Schmitt<T, U>
[src]
impl<T: Clone, U: Clone> Clone for Schmitt<T, U>
fn clone(&self) -> Schmitt<T, U>
[src]
fn clone(&self) -> Schmitt<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 Schmitt<T, U>
[src]
impl<T: Debug, U: Debug> Debug for Schmitt<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 Schmitt<T, U>
[src]
impl<T, U> Stateful for Schmitt<T, U>
type State = State
The filter's internal state.
impl<T, U> StatefulUnsafe for Schmitt<T, U>
[src]
impl<T, U> StatefulUnsafe for Schmitt<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 Schmitt<T, U>
[src]
impl<T, U> InitialState<()> for Schmitt<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 Schmitt<T, U>
[src]
impl<T, U> Resettable for Schmitt<T, U>
impl<T, U> Filter<T> for Schmitt<T, U> where
T: PartialOrd<T>,
U: Clone,
[src]
impl<T, U> Filter<T> for Schmitt<T, U> where
T: PartialOrd<T>,
U: Clone,