Crate fibonnaci_stream [−] [src]
A lazily evaluated futures stream of Fibonnaci numbers.
Usage
⚠Be careful when using this code, it's not being tested!
extern crate fibonnaci_stream; use fibonnaci_stream::{FibError, Stream}; fn main () { let mut stream = FibStream::new(); stream.poll().and_then(|val| { assert_eq!(val, Async::Ready(Some(1))); stream.poll().and_then(|val| { assert_eq!(val, Async::Ready(Some(2))); Ok(()) }); Ok(()) }); }
Structs
FibStream |
A lazily evaluated futures stream of Fibonnaci numbers. |
Traits
Stream |
A stream of values, not all of which may have been produced yet. |