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.
someone said "tablet". When I use a tablet I personally don't just notice it, I literally can't stand any uneven surface under stylus or uneven reflections.
So the unfolded state of the folded phone is not a "tablet" to me. Maybe a tablet with a glaring defect... definitely not a tablet I could use as an actual tablet.