Contents

init(elements:)

View a typed span as a raw span.

Declaration

init<Element>(elements span: Span<Element>) where Element : ConvertibleToBytes

Parameters

  • span:

    An existing Span<Element>, from which this RawSpan will inherit its lifetime.

Discussion

Creates a RawSpan over the memory represented by a Span<Element>.