### Generating and Parsing ULIDs in Rust Source: https://github.com/dylanhart/ulid-rs/blob/master/README.md Demonstrates the basic usage of the `ulid` crate in Rust, including generating a new ULID, converting it to its canonical string representation, and parsing the string back into a Ulid type. Requires the `ulid` crate. ```Rust use ulid::Ulid; // Generate a ulid let ulid = Ulid::new(); // Generate a string for a ulid let s = ulid.to_string(); // Create from a String let res = Ulid::from_string(&s); assert_eq!(ulid, res.unwrap()); ``` -------------------------------- ### Benchmark Results for ULID Operations Source: https://github.com/dylanhart/ulid-rs/blob/master/README.md Displays benchmark results showing the performance (in nanoseconds per iteration) of various ULID operations provided by the `ulid-rs` crate, such as generation, string conversion, and parsing. ```text test bench_from_string ... bench: 13 ns/iter (+/- 0) test bench_from_time ... bench: 13 ns/iter (+/- 0) test bench_generator_generate ... bench: 29 ns/iter (+/- 0) test bench_new ... bench: 31 ns/iter (+/- 1) test bench_to_str ... bench: 7 ns/iter (+/- 0) test bench_to_string ... bench: 19 ns/iter (+/- 0) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.