subscript(unchecked:)
Accesses the element at the specified position in the Span.
Declaration
subscript(unchecked position: Span<Element>.Index) -> Element { get }Parameters
- position:
The offset of the element to access.
positionmust be greater or equal to zero, and less thancount.
Overview
This subscript does not validate position. Using this subscript with an invalid position results in undefined behaviour.