@lesley@mastodon.gamedev.place
Post #1039196
2026-04-08 04:52 UTC
TIL about #Rust 's Option::transpose. Pretty cool stuff:
// this will give you Result<Option<T>, E>
optional.map(|v| something_that_can_fail(v)).transpose()
#RustLang
Replies (0)
No replies.