An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# trie-generic

THIS IS CURRENTLY A WORK IN PROGRESS!
API MAY CHANGE WITHOUT WARNING.

[![Rust](https://github.com/andrefs/trie-generic/actions/workflows/rust.yml/badge.svg)](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.