Struct signalo_filters::source::FromIter[][src]

pub struct FromIter<I> { /* fields omitted */ }

A wrapper type for turning iterators into sources.

Example:

use signalo_filters::source::FromIter;
let iter = FromIter::from(vec![0, 1, 2, 3]);
// ╭───╮  ╭───╮  ╭───╮  ╭───╮
// │ 0 │─▶│ 1 │─▶│ 2 │─▶│ 3 │
// ╰───╯  ╰───╯  ╰───╯  ╰───╯

Trait Implementations

impl<I: Default> Default for FromIter<I>
[src]

Returns the "default value" for a type. Read more

impl<I: Clone> Clone for FromIter<I>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<I: Debug> Debug for FromIter<I>
[src]

Formats the value using the given formatter. Read more

impl<I, J, T> From<J> for FromIter<I> where
    I: Iterator<Item = T>,
    J: IntoIterator<IntoIter = I, Item = T>, 
[src]

Performs the conversion.

impl<I> Source for FromIter<I> where
    I: Iterator
[src]

The source's output type.

Produces the next value in the stream of values.

Auto Trait Implementations

impl<I> Send for FromIter<I> where
    I: Send

impl<I> Sync for FromIter<I> where
    I: Sync