Struct signalo_filters::filter::classify::Slopes [−][src]
pub struct Slopes<T, U> { /* fields omitted */ }
A slope detection filter.
Methods
impl<T, U> Slopes<T, U> where
U: Clone,
[src]
impl<T, U> Slopes<T, U> where
U: Clone,
pub fn new(outputs: [U; 3]) -> Self
[src]
pub fn new(outputs: [U; 3]) -> Self
Creates a new Slopes
filter with given threshold
and outputs
([rising, none, falling]
).
Trait Implementations
impl<T: Clone, U: Clone> Clone for Slopes<T, U>
[src]
impl<T: Clone, U: Clone> Clone for Slopes<T, U>
fn clone(&self) -> Slopes<T, U>
[src]
fn clone(&self) -> Slopes<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 Slopes<T, U>
[src]
impl<T: Debug, U: Debug> Debug for Slopes<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 Slopes<T, U>
[src]
impl<T, U> Stateful for Slopes<T, U>
type State = State<T>
The filter's internal state.
impl<T, U> StatefulUnsafe for Slopes<T, U>
[src]
impl<T, U> StatefulUnsafe for Slopes<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 Slopes<T, U>
[src]
impl<T, U> InitialState<()> for Slopes<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 Slopes<T, U>
[src]
impl<T, U> Resettable for Slopes<T, U>
impl<T, U> Filter<T> for Slopes<T, U> where
T: Clone + PartialOrd<T>,
U: Clone,
[src]
impl<T, U> Filter<T> for Slopes<T, U> where
T: Clone + PartialOrd<T>,
U: Clone,