New blog post: "Pining for Arc Downcasting in Rust"
https://wolfgirl.dev/blog/2026-09-29-pining-for-arc-downcasting-in-rust/
New blog post: "Pining for Arc Downcasting in Rust"
https://wolfgirl.dev/blog/2026-09-29-pining-for-arc-downcasting-in-rust/
@PolyWolf i don't really know what i'm talking about, but is this a little bit like https://doc.rust-lang.org/std/sync/struct.MappedRwLockReadGuard.html ? but without RwLock? :neobot_flop_blep:
@monoidmusician kinda!! those look like they are useful for patterns where you want to immediately drop the lock if you fail to convert. that's still possible without them, just a little uglier code-wise. type signature for projections is the same tho ya
@PolyWolf it says it returns self back in the Err case?
@monoidmusician i am silly, misread, ignore what i said then :P
@PolyWolf hehe okay :3
@PolyWolf just FYI what you're doing at the end looks a of like what yoke does. I think it solves your exact problem: https://crates.io/crates/yoke