Ephera to Rust [email protected]English • 17 hours agoWhen I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlimagemessage-square3fedilinkarrow-up130arrow-down13
arrow-up127arrow-down1imageWhen I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlEphera to Rust [email protected]English • 17 hours agomessage-square3fedilink
minus-square@RustyNovalink2•6 hours 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