Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
dennismar
on Oct 3, 2020
|
parent
|
context
|
favorite
| on:
Rust Starter Kit 2020
Unsafe blocks are not needed. Rc<RefCell<Node<T>>> is what I used.
shepmaster
on Oct 3, 2020
|
next
[–]
The post you are replying to says "efficiently implemented with unsafe". For a linked list, you generally get (has unsafe code + efficient) or (no unsafe code + not as efficient).
Ar-Curunir
on Oct 3, 2020
|
prev
[–]
Yeah, but you can get more efficiency by using unsafe (Rc allocates extra)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: