I wish iterator state was expressed in something other than Option. Something similar to Poll::{Ready<T>, Pending} would've been nice. I mean: seeing Some(None) being returned is kind of confusing. Same for Streams' Poll<Option<Self::Item>> also.
-
Show this thread
Poll::Ready(Some(Ok(12))) Poll::Ready(None) Poll::Ready(Some(Err(e))) vs Poll::Ready(Next(Ok(12))) Poll::Ready(Done) Poll::Ready(Next(Err(e))) Naming can probably be bikeshed a bunch, but I def feel like the second example is clearer about what's going on.
1:24 PM - 29 Mar 2019
from Berlin, Germany
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.