Contents

init(unsafeElements:)

Unsafely convert a typed span to a raw span.

Declaration

init<Element>(unsafeElements elements: consuming MutableSpan<Element>)

Parameters

  • elements:

    An existing MutableSpan<Element>, from which this MutableRawSpan will inherit its lifetime.

Discussion

Creates a MutableRawSpan over the memory represented by a MutableSpan<Element>.