Indextree
Arena based tree 🌲 structure by using indices instead of reference counted pointers
Install / Use
/learn @saschagrunert/IndextreeREADME
indextree
Arena based tree structure with multithreading support
This arena tree structure is using just a single Vec and numerical identifiers
(indices in the vector) instead of reference counted pointers. This means there
is no RefCell and mutability is handled in a way much more idiomatic to Rust
through unique (&mut) access to the arena. The tree can be sent or shared across
threads like a Vec. This enables general multiprocessing support like
parallel tree traversals.
Example usage
use indextree::Arena;
// Create a new arena
let arena = &mut Arena::new();
// Add some new nodes to the arena
let a = arena.new_node(1);
let b = arena.new_node(2);
// Append b to a
a.append(b, arena);
assert_eq!(b.ancestors(arena).count(), 2);
Related Skills
himalaya
341.0kCLI to manage emails via IMAP/SMTP. Use `himalaya` to list, read, write, reply, forward, search, and organize emails from the terminal. Supports multiple accounts and message composition with MML (MIME Meta Language).
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
coding-agent
341.0kDelegate coding tasks to Codex, Claude Code, or Pi agents via background process
