Struct signalo_filters::source::Chain [−][src]
pub struct Chain<F, B> { /* fields omitted */ }
A source that returns only a specified number of values.
Example:
use signalo_filters::source::FromIter; let front = FromIter::from(vec![0, 1, 2]); // ╭───╮ ╭───╮ ╭───╮ // │ 0 │─▶│ 1 │─▶│ 2 │ // ╰───╯ ╰───╯ ╰───╯ let back = FromIter::from(vec![3, 4]); // ╭───╮ ╭───╮ // │ 3 │─▶│ 4 │ // ╰───╯ ╰───╯ use signalo_filters::source::Chain; let chain = Chain::new(front, back); // ╭───╮ ╭───╮ ╭───╮ ╭───╮ ╭───╮ // │ 0 │─▶│ 1 │─▶│ 2 │─▶│ 3 │─▶│ 4 │ // ╰───╯ ╰───╯ ╰───╯ ╰───╯ ╰───╯
Methods
impl<F, B> Chain<F, B>
[src]
impl<F, B> Chain<F, B>
Trait Implementations
impl<F: Clone, B: Clone> Clone for Chain<F, B>
[src]
impl<F: Clone, B: Clone> Clone for Chain<F, B>
fn clone(&self) -> Chain<F, B>
[src]
fn clone(&self) -> Chain<F, B>
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<F: Debug, B: Debug> Debug for Chain<F, B>
[src]
impl<F: Debug, B: Debug> Debug for Chain<F, B>
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<F, B, T> Source for Chain<F, B> where
F: Source<Output = T>,
B: Source<Output = T>,
[src]
impl<F, B, T> Source for Chain<F, B> where
F: Source<Output = T>,
B: Source<Output = T>,