Atomize
Elixir style atoms for Rust
From Elixir: An atom is a constant whose value is its own name. Some other languages call these symbols. They are often useful to enumerate over distinct values.
Creating an Atom
use ;
Atom Equality
Atoms are compared in O(1) time. In fact, they compile to simple u64 and so are compared in a single x64 operation
assert_eq!;
assert_ne!;
Mixing
Atoms can also be mixed
let apple_and_orange = a! + a!;
assert_eq!;