https://github.com/andrefs/trie-generic
Generic implementation of a trie.
https://github.com/andrefs/trie-generic
Last synced: over 1 year ago
JSON representation
Generic implementation of a trie.
- Host: GitHub
- URL: https://github.com/andrefs/trie-generic
- Owner: andrefs
- Created: 2022-10-23T20:40:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T22:20:38.000Z (over 3 years ago)
- Last Synced: 2025-02-09T11:05:29.115Z (over 1 year ago)
- Language: Rust
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# trie-generic
THIS IS CURRENTLY A WORK IN PROGRESS!
API MAY CHANGE WITHOUT WARNING.
[](https://github.com/andrefs/trie-generic/actions/workflows/rust.yml)
Generic implementation of a trie.
## Install
Add `trie-generic` to the dependencies on your Cargo.toml file:
```rust
[dependencies]
trie-generic = "0.1.2"
```
## API
## Example
## To do
- `t.set(key, value)`
- `t.all() -> (key, value)`
- `t.subtree(prefix) -> Trie`
- Improve docs
- Replace string/Vec with Iterator
## Bugs and stuff
Open a GitHub issue or, preferably, send me a pull request.