Comment

Comment by cbarrick

> safe from a pinning perspective

The reason you can't get &mut T from Pin<Arc<T>> is because the mutable reference lets you move the data in safe Rust, e.g. with std::mem::swap.

So getting the &mut T from a Pin<Arc<T>> is not safe from a pinning perspective.

parent cbarrick 5 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton