CasePathsCore
Case paths bring the power and ergonomics of key paths to enums.
import CasePathsCore
Module information
- Declarations
- 65
- Symbols
- 210
Overview
This module contains the core functionality of the Case Paths library, minus the @CasePathable
macro, and is automatically imported when you import CasePaths
See the CasePaths
module for information about the @CasePathable
macro and other non-core functionality.
Creating case paths
protocol CasePathable
A type that provides a collection of all of its case paths.
typealias CaseKeyPath<Root, Value>
A key path to the associated value of an enum case.
Swift support
enum Optional<Wrapped>
A type that represents either a wrapped value or the absence of a value.
enum Result<Success, Failure>
A value that represents either a success or a failure, including an associated value in each case.
enum Never
A type that has no values and can’t be constructed.
Migration guides
Migration guides
Learn how to upgrade your application to the newest version of Case Paths.
Read More