Trait slotmap::Slottable[][src]

pub trait Slottable: Copy { }
Expand description

A trait for items that can go in a slot map. 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. If you can’t use unstable Rust and still want to store Copy data, store that as associated data in a SecondaryMap.

Implementors