[][src]Type Definition casper_node::effect::Multiple

type Multiple<T> = SmallVec<[T; 2]>;

A small collection of rarely more than two items.

Stored in a SmallVec to avoid allocations in case there are less than three items grouped. The size of two items is chosen because one item is the most common use case, and large items are typically boxed. In the latter case two pointers and one enum variant discriminator is almost the same size as an empty vec, which is two pointers.