DropSome
trait and impl
for Option
.DropSome
trait has .drop_some(self) -> Option<()>
function..map(|_|())
.```rust fn somefunction() -> Option<()> match switcher { patterna => sometask1().dropsome()? patternb => sometask2().dropsome()? patternc => sometask3()? patternd => some_task4() _ => () }
fn sometask1() -> Option
"I don't need it, because ..."
.map(|_|())
. So I'm happy with.drop_some()
.