Type Definition granite::DefaultStorage[][src]

type DefaultStorage<T> = SparseVec<T>;

The default storage type used by data structures when a storage type is not provided.

This is chosen according to the following strategy:

  • If the slab feature flag is enabled, Slab is used
  • Otherwise, if alloc is enabled, SparseVec is used
  • Otherwise, if smallvec is enabled, a sparse SmallVec with zero-sized backing storage is used
  • Otherwise, if arrayvec is enabled, an ArrayVec with zero-sized backing storage is used
  • If even arrayvec is not available, a compile error is generated. No other storage types are ever used as defaults.