logoalt Hacker News

NIckGeektoday at 2:28 AM0 repliesview on HN

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.