While there are no official initializers yet for Span
, SE-0456 (announcement) provides accessors on a number of stdlib types that will allow you to start using them. In particular, UnsafeBufferPointer
(unsafely of course, but necessary for impedance matching), Array
and InlineArray
will be able to provide you with a usable Span
.
1 Like