Crate slablit[][src]

This crate exposes a macro slab which creates a new Slab.
It returns a tuple of the slab and the created keys as a fixed size array.

Examples

Basic

#![feature(decl_macro, macro_at_most_once_rep)]
use slablit::slab;

let (slab, [first_id, second_id, third_id]) = slab!["foo", "bar", "baz"];

With Trailing Comma

#![feature(decl_macro, macro_at_most_once_rep)]

use slablit::slab;

let (slab, _) = slab![
    "foo",
    "bar",
    "baz",
];

Macros

slab