Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mindbeam/inverted-index-util
Utilities for implementing inverted indexes
https://github.com/mindbeam/inverted-index-util
Last synced: 13 days ago
JSON representation
Utilities for implementing inverted indexes
- Host: GitHub
- URL: https://github.com/mindbeam/inverted-index-util
- Owner: mindbeam
- License: apache-2.0
- Created: 2020-03-13T01:10:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-03-16T22:56:47.000Z (over 4 years ago)
- Last Synced: 2024-10-31T12:04:50.017Z (19 days ago)
- Language: Rust
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-APACHE
Awesome Lists containing this project
README
[![Build Status](https://travis-ci.org/mindbeam/inverted-index-util.svg?branch=master)](https://travis-ci.org/mindbeam/inverted-index-util)
# inverted-index-util
This crate provides utilities for implementing inverted indexes## Usage
```rust
use inverted_index_util::entity_list::insert_entity_mut;
use typenum::consts::U16;
let mut entity_list: Vec = Vec::new();insert_entity_mut::(&mut entity_list, b"aaaaaaaaaaaaaaaa");
insert_entity_mut::(&mut entity_list, b"cccccccccccccccc");
insert_entity_mut::(&mut entity_list, b"aaaaaaaaaaaaaaaa");
insert_entity_mut::(&mut entity_list, b"bbbbbbbbbbbbbbbb");assert_eq!(
&entity_list[..],
&b"aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbcccccccccccccccc"[..]
);
```