Trait slotmap::Slottable[][src]

pub trait Slottable: Copy { }

A trait for items that can go in a SlotMap. Due to current stable Rust restrictions a type must be Copy to be placed in a slot map. If you must store a type that is not Copy you must use nightly Rust and enable the unstable feature for slotmap by editing your Cargo.toml.

slotmap = { version = "...", features = ["unstable"] }

This trait should already be automatically implemented for any type that is slottable.

Implementors