Y
Hacker News
new
|
ask
|
show
|
jobs
by
ekimekim
1979 days ago
I'm still learning Rust, but iiuc you could do this by creating an OffsetPtr type that implements the Deref trait (
https://doc.rust-lang.org/std/ops/trait.Deref.html
). This is exactly a "fancy pointer" as you describe.