Contents

extracting(_:)

Constructs a new span over all the bytes of this span.

Declaration

mutating func extracting(_: UnboundedRange) -> MutableRawSpan

Return Value

A MutableRawSpan over all the bytes of this span.

Discussion

The returned span represents a mutation of this span.

The returned span’s first item is always at offset 0; unlike buffer slices, extracted spans do not share their indices with the span from which they are extracted.