---
title: Regions
framework: foundation
role: symbol
role_heading: Associated Type
path: foundation/dataprotocol/regions-swift.associatedtype
---

# Regions

A type that represents a collection of contiguous parts that make up the type conforming to a data protocol.

## Declaration

```swift
associatedtype Regions : BidirectionalCollection where Self.Regions.Element : ContiguousBytes, Self.Regions.Element : DataProtocol, Self.Regions.Element.SubSequence : ContiguousBytes
```

## See Also

### Accessing Backing Storage

- [regions](foundation/dataprotocol/regions-swift.property.md)
