Nine Rules for Creating Fast, Safe, and Compatible Data Structures in Rust (Part 2) | by Carl M. Kadie | Apr, 2023
Lessons from RangeSetBlazeStoring numbers in a tree — Source: Bing Image CreatorThis is Part 2 of an article about creating data structures in Rust. We’ll look at rules 6 to 9:6. Define operators and fast operations.7. Follow the “Nine Rules of Good API Design” especially “write good documentation”.8. Optimize performance using representative data, Criterion Benchmarking, and profiling.9. Test coverage, docs, traits, compiler errors, and correctness.See Part 1 for rules 1 to 5.Plagiarize your API, documentation, and even…