evil-id 0.1.2

A very easy to use (and evil) id type.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use evil_id::EvilID;

fn main() {
    let id: EvilID = EvilID::generate(); // A new id can be created with the generate function.

    let id_string: String = id.get(); // The stringify function creates a 16 character string representing the id.

    let also_id: EvilID = EvilID::new_from(id_string.clone()).expect("Shouldn't happen."); // We can get the id back from a String. MAke sure to give it a valid id string or it will throw an error.

    let is_eq = id == also_id; // They should be the same.

    println!("ID: {id_string}\nIs eq: {is_eq}");
}