The TrieST represents an symbol table of key-value pairs, with string keys and generic values. It supports the usual put, get, contains, delete, len, and is-empty, methods. It also provides character-based methods for finding the string in the symbol table that is the *longest prefix* of a given prefix, finding all strings in the symbol table that s*tart with* a given prefix, and finding all strin
| 51 | /// The len, and is-empty operations take constant time. |
| 52 | /// Construction takes constant time. |
| 53 | pub struct TrieST<T> { |
| 54 | root: Option<NonNull<Node<T>>>, |
| 55 | n: usize, |
| 56 | } |
| 57 | |
| 58 | struct Node<T> { |
| 59 | val: Option<T>, |
nothing calls this directly
no outgoing calls
no test coverage detected