Struct signalo_filters::source::Take [−][src]
pub struct Take<S> { /* fields omitted */ }
A source that returns only up to a specified number of values.
Example:
use signalo_filters::source::Increment; let increment: Increment<_> = Increment::new(0, 1); // ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ // │ 0 │─▶│ 1 │─▶│ 2 │─▶│ 3 │─▶│ 4 │─▶ ... // ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯ use signalo_filters::source::Take; let take: Take<_> = Take::new(increment, 3); // ╭───╮ ╭───╮ ╭───╮ // │ 0 │─▶│ 1 │─▶│ 2 │ // ╰───╯ ╰───╯ ╰───╯
Methods
impl<S> Take<S>
[src]
impl<S> Take<S>
Trait Implementations
impl<S: Clone> Clone for Take<S>
[src]
impl<S: Clone> Clone for Take<S>
fn clone(&self) -> Take<S>
[src]
fn clone(&self) -> Take<S>
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<S: Debug> Debug for Take<S>
[src]
impl<S: Debug> Debug for Take<S>
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<S, T> Source for Take<S> where
S: Source<Output = T>,
[src]
impl<S, T> Source for Take<S> where
S: Source<Output = T>,