CasePaths Documentation

Structures

Case​Path

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

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.

Operators

.​.​
/

Extensions

Optional