1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! # RADYX - A Basic Radix Tree Implementation
//!
//! A Rust implementation of a Radix Tree (also known as a Compact Prefix Tree) designed to be efficient, scalable, and easy to use. Radix Trees are widely used in applications such as autocomplete systems, routing tables, and prefix-based search.
//!
//! ## Installation
//!
//! Add the following to your Cargo.toml:
//!
//! ```toml
//! [dependencies]
//! radyx = "*"
//! ```
//!
//! or use the cargo cli
//!
//! ```bash
//! cargo add radyx
//! ```
//!
//! ### Usage
//!
//! ```rust
//! use radyx::Radyx;
//!
//! let mut node: Radyx<&str> = Radyx::default();
//!
//! node.insert("/home", "Home");
//! node.insert("/nothome", "Elsewhere");
//!
//! assert_eq!(Some(&"Home"), node.get("/home"));
//! ```
pub
pub use Radyx;