---
title: Set.Index
framework: swift
role: symbol
role_heading: Structure
path: swift/set/index
---

# Set.Index

The position of an element in a set.

## Declaration

```swift
@frozen struct Index
```

## Topics

### Default Implementations

- [Comparable Implementations](swift/set/index/comparable-implementations.md)
- [Equatable Implementations](swift/set/index/equatable-implementations.md)
- [Hashable Implementations](swift/set/index/hashable-implementations.md)

## Relationships

### Conforms To

- [Comparable](swift/comparable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Supporting Types

- [Set.Iterator](swift/set/iterator.md)
