Skip to main content

easy_trie/
lib.rs

1//! Easy implementation of tries in rust.
2//!
3//! A simple crate to use tries in rust.
4//! At the moment, supports only insertion and checking if a word is in the trie.
5//! Only works with `str` types.
6//!
7//! # Examples
8//! ```
9//! use easy_trie::trie::Trie;
10//!
11//! let mut trie = Trie::new();
12//! trie.insert("hello");
13//! assert_eq!(trie.len(), 5);
14//! assert!(trie.contains("hello"));
15//! assert!(!trie.contains("world"));
16//! ```
17
18pub mod trie;
19pub mod trie_node;