Ephera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 24 days agoWhen I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlexternal-linkmessage-square7fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1external-linkWhen I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlEphera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 24 days agomessage-square7fedilink
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up0·24 days agoIt’s super useful for TryStreams with next(). I often want to ? the result up, so that I can have a clean item in my while let loop
It’s super useful for
TryStream
s withnext()
. I often want to?
the result up, so that I can have a clean item in mywhile let
loop