Is there a simple way to map i64 <> u64 such that:

for values they both represent, the maping preserves value

the mapping is 11
?
Is there a simple way to map i64 <> u64 such that:
for values they both represent, the maping preserves value
the mapping is 11
?
You can convert between them using as
which effectively transmute them and has those 2 properties you mentioned.
The mapping used by as
casting or other bitforbit reintepretation in Rust is two's complement.