3 ms·
Sync is implemented automatically for most types; if you want to tell the compiler something is Sync when it thinks it isn’t, that’s when you need unsafe. Same
by steveklabnik 9y ago
Sync is implemented automatically for most types; if you want to tell the compiler something is Sync when it thinks it isn’t, that’s when you need unsafe.
Same with Send, which is more primitive than Sync.
- zenhack 9y agoAh, point. That would probably need to change to relax the one mutable reference constraint, if you wanted to.