[][src]Trait slotmap::Slottable

pub trait Slottable: Copy { }

A trait for items that can go in a SlotMap or HopSlotMap. Due to current stable Rust restrictions a type must be Copy to be placed in one of those slot maps. This restriction does not apply to DenseSlotMap, SecondaryMap or SparseSecondaryMap. It also does not apply if you 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

impl<T: Copy> Slottable for T[src]

Loading content...