pub type ThinVec<T> = ThinVec<T>;
Expand description
(internals) A smaller Vec
alternative. Exported under the internals
feature only.
Exported under the internals
feature only.
The standard Vec
type uses three machine words (i.e. 24 bytes on 64-bit).
ThinVec
only uses one machine word, storing other
information inline together with the data.
This is primarily used in places where a few bytes affect the size of the type
– e.g. in enum
’s.
Aliased Type§
struct ThinVec<T> { /* private fields */ }