Hacker News new | ask | show | jobs
by NIckGeek 96 days ago
You can make a wrapper type that abstracts the offset lookup logic with a safe interface. If it's a transparent struct then rust will compile it away into nothing but you still get the abstraction in your code.