CasePaths Documentation

Structures

Case​Path

A path that supports embedding a value in a root and attempting to extract a root's embedded value.

Enum​Metadata
Enum​Type​Descriptor

Enumerations

XCTModify​Locals

Protocols

_Optional​Protocol

Functions

extract(case:​from:​)

Attempts to extract values associated with a given enum case initializer from a given root enum.

extract(case:​from:​)

Attempts to extract values associated with a given enum case initializer from a given root enum.

extract(_:​)

Returns a function that can attempt to extract associated values from the given enum case initializer.

extract(_:​)

Returns a function that can attempt to extract associated values from the given enum case initializer.

.​.​(lhs:​rhs:​)

Returns a new extract function by appending the given extract function with an embed function.

XCTUnwrap(_:​case:​_:​file:​line:​)

Asserts that an enum value matches a particular case and returns the associated value.

XCTModify(_:​case:​_:​file:​line:​_:​)

Operators

.​.​
/

Extensions

Optional