bytesbox 0.4.0

ByteBox is a high-performance hash map implementation optimized for byte slices. It efficiently maps keys and values of type Vec<u8>, providing full ownership of the data. ByteBox uses a custom hash function with linked-list-based collision handling, ensuring low memory overhead and optimal performance.
Documentation
use bytesbox::*;
#[test]
fn collision_handling_with_view_table() {
    let mut byte_box = ByteBox::prealloc(1); // Small capacity to force collisions

    let content_lenght = b"content-lenght";
    let content_lenght_value = b"74892034";
    let content_type = b"content-type";
    let content_type_value = b"text/html";
    let content_disposition = b"content-disposition";
    let content_disposition_value = b"form-data:image; type:file: filename:image.jpg";

    assert!(byte_box.insert(content_lenght, content_lenght_value));
    assert!(byte_box.insert(content_type, content_type_value));
    assert!(byte_box.insert(content_disposition, content_disposition_value));

    // Display the table to visualize the collision
    byte_box.view_table(); // This will show the internal state of the hash map
}