Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mnpw/trivecta
good old vector served three way
https://github.com/mnpw/trivecta
Last synced: 4 days ago
JSON representation
good old vector served three way
- Host: GitHub
- URL: https://github.com/mnpw/trivecta
- Owner: mnpw
- Created: 2023-11-19T08:03:41.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2023-11-28T15:57:29.000Z (12 months ago)
- Last Synced: 2024-10-11T14:13:27.746Z (27 days ago)
- Language: Rust
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TriVec-ta
Inspired by rust-smallvec, it provides three modes of storing data:
- stack
- heap
- diskBased on the capacities set, TriVec moves its content between the three
stores## Usage
```rust
// using `trivec` macro
let mut v = trivec![1, 2, 3, 4, 5; 100; 10_000]let mut v: TriVec = TriVec::new(100, 10_000)
```