Skip to content

Raw Pointers practice problems in Rust

Difficulty:
Category:
Tag:

Showing 8 of 8

Status Title Difficulty
C strings, ownership across the boundary, and FFI-safe types Medium
Pointer arithmetic: `offset`, `add`, `sub`, `wrapping_*` Medium
Provenance: a pointer is not an integer Hard
`ptr::read`, `write`, `copy`, `copy_nonoverlapping`, `drop_in_place` Medium
`&raw const` / `&raw mut`: a pointer without a reference Medium
Raw pointers: `*const T` and `*mut T` Easy
The five superpowers — and the four myths Easy
unsafe impl Send, and the disjoint-capture trap Hard