fn to_vec<F>(self, splitter: F) -> ToVec<Self, F>
        where F: FnMut(&Vec<Self::Item>) -> bool,
              Self: Sized
    {
        ToVec::new(self, splitter)
    }
/// Bundle incoming elements into a `Vec`. A split function can be specified
/// to emit a `Vec` when the splitter returns true. The remaing `Vec` is emited
/// only when not empty.
///
/// # Examples
///
/// ```
/// use asyncplify::*;
///
/// let mut v = Vec::new();
///
/// (0..3)
///     .into_stream()
///     .to_vec(|vec| vec.len() == 2)  // split after 2 items
///     .inspect(|vec| v.push(vec.len()))
///     .subscribe();
///
/// assert!(v == [2, 1], "v = {:?}", v);
/// ```
Bundle incoming elements into a `Vec`. A split function can be specified
to emit a `Vec` when the splitter returns true. The remaing `Vec` is emited
only when not empty.
Bundle incoming elements into a ` Vec ` . A split function can be specified to emit a ` Vec ` when the splitter returns true . The remaing ` Vec ` is emited only when not empty .
fn to_vec<F>(self, splitter: F) -> ToVec<Self, F>
        where F: FnMut(&Vec<Self::Item>) -> bool,
              Self: Sized
    {
        ToVec::new(self, splitter)
    }
fn to_vec < F > ( self , splitter : F ) -> ToVec < Self , F > where F : FnMut ( & Vec < Self :: Item > ) -> bool , Self : Sized { ToVec :: new ( self , splitter ) }
Bundle incoming elements into a `Vec`.
Bundle incoming elements into a ` Vec ` .
self
splitter
F
self
splitter
F
examples
```
use asyncplify::*.

let mut v = Vec::new().




` ` ` use asyncplify :: * . let mut v = Vec :: new () .