https://github.com/mnpw/trivecta
good old vector served three way
https://github.com/mnpw/trivecta
Last synced: 3 months 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 (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-28T15:57:29.000Z (over 1 year ago)
- Last Synced: 2025-02-14T07:17:29.961Z (5 months 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)
```