indices(of:)
Returns the indices within this span where the memory represented by other is located, or nil if other is not located within this span.
Declaration
func indices(of other: borrowing Span<Element>) -> Range<Span<Element>.Index>?Parameters
- other:
A span that may be a subrange of
self
Return Value
A range of indices within self, or nil.