Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: