16 releases

Uses new Rust 2024

0.4.0 Nov 1, 2025
0.3.1 Dec 3, 2022
0.2.10 Apr 14, 2018
0.2.9 Oct 30, 2017
0.2.6 Nov 28, 2016

#236 in Data structures

Download history 1000/week @ 2025-09-25 1005/week @ 2025-10-02 867/week @ 2025-10-09 936/week @ 2025-10-16 931/week @ 2025-10-23 1225/week @ 2025-10-30 999/week @ 2025-11-06 1218/week @ 2025-11-13 1347/week @ 2025-11-20 1109/week @ 2025-11-27 1213/week @ 2025-12-04 1286/week @ 2025-12-11 1289/week @ 2025-12-18 1031/week @ 2025-12-25 1099/week @ 2026-01-01 1219/week @ 2026-01-08

4,866 downloads per month
Used in 35 crates (3 directly)

MIT license

97KB
2K SLoC

splay_tree

Documentation Actions Status License

splay_tree provides data structures such as map, set and heap which are based on an in-place top-down splay tree.

A splay tree is a self-adjusting binary search tree with the additional property that recently accessed elements are quick to access again. It performs basic operations such as insertion, look-up and removal in O(log n) amortized time. - Splay tree (Wikipedia)

Documentation

See RustDoc Documentation.

The documentation includes some examples.

Installation

Add following lines to your Cargo.toml:

[dependencies]
splay_tree = "0.2"

Reference

License

This library is released under the MIT License.

See the LICENSE file for full license information.

Dependencies

~160KB