Cantor-Pair

Crates.ioCantor-Pair
lib.rsCantor-Pair
version0.1.2
sourcesrc
created_at2024-08-11 04:04:53.112155
updated_at2024-08-11 04:23:14.857532
descriptionA general algorithm to enable cantor pairing and unpairing between usizes. I'm not responsible for any damages if this code breaks GL GG
homepage
repositoryhttps://github.com/git4unrealnondev/Rust-Cantor-Pair
max_upload_size
id1332954
size2,911
(git4unrealnondev)

documentation

README

A simple algorithm to enable cantor pairing has a small test

A simple library to do cantor pairing Call the cantor_pair function to generate a unique id Call the cantor_unpair function to get the unique numbers that relate to that one id

Notes: Not sure how efficient this is but it works lol I can't republish to crates.io to change the name. Oh well

Mostly using it for my own development but if someone else wants to use it then go crazy

Commit count: 0

cargo fmt