Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Small-index

A simple lowest index allocator. This crate provides a simple lowest index allocator. It is useful for allocating indexes for arrays.

Example

use small_index::{IndexAllocator};
let mut allocator = IndexAllocator::<128>::new(); // Specify the maximum index value as a generic parameter.
assert_eq!(allocator.allocate(),Ok(0));
assert_eq!(allocator.allocate(),Ok(1));

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages