https://github.com/robjtede/tinymap
A simple map that stores data on the stack.
https://github.com/robjtede/tinymap
Last synced: about 2 months ago
JSON representation
A simple map that stores data on the stack.
- Host: GitHub
- URL: https://github.com/robjtede/tinymap
- Owner: robjtede
- License: apache-2.0
- Created: 2020-08-21T00:26:59.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-10T00:08:39.000Z (over 2 years ago)
- Last Synced: 2024-05-01T19:29:26.378Z (about 1 year ago)
- Language: Rust
- Size: 45.9 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
# tinymap
[](https://dev.azure.com/jtnunley01/gui-tools/_build/latest?definitionId=9&branchName=master)
[](https://crates.io/crates/tinymap)
[](https://docs.rs/tinymap)An implementation of a binary tree-based map that uses the `ArrayVec` from the `tinyvec` crate as its backing. This should not be used outside of projects that require `#![no_std]`. Even if your project is using `#![no_std]`, consider having a feature gate that allows the usage of `HashMap` or a similar type if the `alloc` crate is available. The main purpose of this crate is to provide a similar API to `HashMap` as a last resort in the event that `HashMap` is not available.
This project, similarly to `tinyvec`, also does not use any unsafe code.
# License
This crate is dual-licensed under the Apache 2.0 License and the MIT license. Either can be used at your option.