inverted-index-util

Crates.ioinverted-index-util
lib.rsinverted-index-util
version0.0.5
sourcesrc
created_at2020-03-13 01:47:14.40744
updated_at2020-03-16 22:56:54.562598
descriptionUtilities for implementing an inverted index
homepage
repositoryhttps://github.com/mindbeam/inverted-index-util
max_upload_size
id217997
size22,938
Daniel (dnorman)

documentation

README

Build Status

inverted-index-util

This crate provides utilities for implementing inverted indexes

Usage

    use inverted_index_util::entity_list::insert_entity_mut;
    use typenum::consts::U16;
    let mut entity_list: Vec<u8> = Vec::new();

    insert_entity_mut::<U16>(&mut entity_list, b"aaaaaaaaaaaaaaaa");
    insert_entity_mut::<U16>(&mut entity_list, b"cccccccccccccccc");
    insert_entity_mut::<U16>(&mut entity_list, b"aaaaaaaaaaaaaaaa");
    insert_entity_mut::<U16>(&mut entity_list, b"bbbbbbbbbbbbbbbb");

    assert_eq!(
        &entity_list[..],
        &b"aaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbcccccccccccccccc"[..]
    );
Commit count: 11

cargo fmt