Struct signalo_filters::source::Constant [−][src]
pub struct Constant<T> { /* fields omitted */ }
A source that returns an constant value on each call.
Example:
use signalo_filters::source::Constant; let constant = Constant::new(42); // ╭────╮ ╭────╮ ╭────╮ ╭────╮ ╭────╮ // │ 42 │─▶│ 42 │─▶│ 42 │─▶│ 42 │─▶│ 42 │─▶ ... // ╰────╯ ╰────╯ ╰────╯ ╰────╯ ╰────╯
Methods
impl<T> Constant<T>
[src]
impl<T> Constant<T>
Trait Implementations
impl<T: Default> Default for Constant<T>
[src]
impl<T: Default> Default for Constant<T>
impl<T: Clone> Clone for Constant<T>
[src]
impl<T: Clone> Clone for Constant<T>
fn clone(&self) -> Constant<T>
[src]
fn clone(&self) -> Constant<T>
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> Debug for Constant<T>
[src]
impl<T: Debug> Debug for Constant<T>
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> From<T> for Constant<T>
[src]
impl<T> From<T> for Constant<T>
impl<T> Source for Constant<T> where
T: Clone,
[src]
impl<T> Source for Constant<T> where
T: Clone,