To reiterate, InlineArray
is not going to be built on top of Vector
, nor vice versa. These are independent constructs, each manually built from scratch using separate compiler builtins.
(It is not my goal for Swift to provide a public tool to build custom Inline*
types from scratch; although if we're lucky, we may well end up with a usable-but-clumsy construct, in the same sort of role as ManagedBuffer
is for heap allocated CoW types.)