Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
hedora
8 months ago
|
parent
|
context
|
favorite
| on:
Migrating away from Rust
Pin and unpin handle circular references, sort of.
ycombinatrix
8 months ago
|
next
[–]
std::rc::Weak?
tonyedgecombe
8 months ago
|
parent
|
next
[–]
The GP does mention Rc/Arc.
ycombinatrix
8 months ago
|
root
|
parent
|
next
[–]
Rc & Arc don't have the same behavior as Weak
tonyedgecombe
8 months ago
|
root
|
parent
|
next
[–]
Can you use Weak without either Rc or Arc?
ycombinatrix
8 months ago
|
root
|
parent
|
next
[–]
not relevant but yes, you can.
SkiFire13
8 months ago
|
prev
[–]
Not really, they are just tools to expose circular references (or self-references) that are *already managed by unsafe code*.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: