streamify 0.1.0

Conversions from values to Stream
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use streamify;

#[test]
fn streamify_a_future() {
  let fut = async { 10 };
  let stream = streamify::from_future(fut);
}

#[test]
fn streamify_any_value() {
  let val = 10;
  let stream = streamify::from_any(val);

  let val = "Testing".to_owned();
  let stream = streamify::from_any(val);
}