Ephera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 1 年前When I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlimagemessage-square7linkfedilinkarrow-up157arrow-down16
arrow-up151arrow-down1imageWhen I have an Option<Result<T, E>> but need a Result<Option<T>, E>lemmy.mlEphera@lemmy.ml to Rust Programming@lemmy.mlEnglish · 1 年前message-square7linkfedilink
minus-squareRustyNova@lemmy.worldlinkfedilinkarrow-up4·1 年前It’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
TryStreams withnext(). I often want to?the result up, so that I can have a clean item in mywhile letloop