yulid

A Rust implementation of the ULID spec that aims to be as similar to uuid as possible.

Supports

Examples

```rust use yulid::Ulid;

fn main() { // create a new ULID let ulid = Ulid::new();

// print the lowercase form println!("{}", ulid.to_lowercase());

// get the DateTime this ULID contains let timestamp = ulid.timestamp(); } ```

```rust use rand::{Rng, thread_rng}; use yulid::Ulid;

fn main() { // generate a ULID using rand let ulid: Ulid = thread_rng().gen(); } ```