ManevilleF / hexx

Hexagonal tools lib in rust
Apache License 2.0
276 stars 22 forks source link

add conversions to/from u64 #169

Closed SIGSTACKFAULT closed 3 months ago

SIGSTACKFAULT commented 3 months ago

Useful as a sort key, or for saving in a binary format (in my case i wanted a sort key :P )

decided to implement as as_u64 and from_u64 because i figured it would be a kinda weird thing for .into() to do.

documentation and tests included.

ManevilleF commented 3 months ago

That's a neat addition ! Could you resolve the CI failures ?

SIGSTACKFAULT commented 3 months ago

<3