ᴄʜᴏᴋɪᴅᴀʀ to Programmer [email protected]English • 1 year agorust in the linux kernelimagemessage-square30arrow-up1276arrow-down16
arrow-up1270arrow-down1imagerust in the linux kernelᴄʜᴏᴋɪᴅᴀʀ to Programmer [email protected]English • 1 year agomessage-square30
minus-square@[email protected]linkfedilinkEnglish19•1 year agoThere! Now try to make a doubly linked list
minus-square@[email protected]linkfedilinkEnglish5•1 year agounsafe time. I’ve poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you’re implementing list operations.
minus-square@akash_rawallinkEnglish4•1 year agoquietly implements next and prev references using array index
There! Now try to make a doubly linked list
unsafe
time.I’ve poked around in the Rust linked list tutorial, and it all seems like hacks to me. At the end of the day I think you just need to use raw pointers when you’re implementing list operations.
quietly implements
next
andprev
references using array indexits not super hard in rust
It’s harder than in most other languages