embed-collections-0.1.0 has been yanked.
Embed Collections
embed-collections provides intrusive data structures for Rust. Unlike standard collections,
intrusive collections require the elements to store the node data (links) themselves.
This allows for:
- Memory Efficiency: No extra allocation for nodes.
- Deterministic Memory Management: You control where the node lives.
- Flexibility: Works with various pointer types (
Box,Arc,Rc,NonNull, raw pointers).
Modules
- [
dlist]: Intrusive Doubly Linked List. - [
slist]: Intrusive Singly Linked List (FIFO Queue).
Example
use ;
use UnsafeCell;
unsafe
let mut list = new;
list.push_back;
list.push_back;
assert_eq!;
assert_eq!;