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]

Creates a new Chain source from a given pair of sources.

Trait Implementations

impl<F: Clone, B: Clone> Clone for Chain<F, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<F: Debug, B: Debug> Debug for Chain<F, B>
[src]

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]

The source's output type.

Produces the next value in the stream of values.

Auto Trait Implementations

impl<F, B> Send for Chain<F, B> where
    B: Send,
    F: Send

impl<F, B> Sync for Chain<F, B> where
    B: Sync,
    F: Sync