3 ms·
I’m no expert but yes, you can do anything in unsafe as in C can do anything. Unsafe Rust provides you access to raw pointers.
by unrealhoang 7y ago
I’m no expert but yes, you can do anything in unsafe as in C can do anything. Unsafe Rust provides you access to raw pointers.
- nunchuckninja 7y agoI'll add more details to see if it helps- C: ``` node prime= list.head; while () { node probe = prime.next; while() { if () //condition on prime.data and probe.data { probe.next = probe.next.next; //& drop stuff } } ```
- pitaj 7y agoYou need to use four space indent to create code blocks, triple-ticks don't work here.