Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The module std::collections has a good summary on popular collection data structures in Rust and when to use them.

rust-collection-summary

Array in Rust

Graph

Maps in Rust

Please refer to Map in Rust for detailed discussions.

elsa

Elsa provides append-only collections for Rust where borrows to entries can outlive insertions

itertools

itertools provides extra iterator adaptors, iterator methods, free functions, and macros.

Heapless / Stack / Array

heapless / arrayvec: stores on the stack only. Limited capacity, capacity set at creation.

trie

References

Contiguous Data in Rust https://github.com/paulkernfeld/contiguous-data-in-rust