ConstraintBuilder
@resultBuilder
public struct ConstraintBuilder<T, E> where E : Error
Undocumented
-
Undocumented
Declaration
Swift
public static func buildExpression<C>(_ expression: C) -> ConstraintContainer<T, E> where T == C.InputType, E == C.ErrorType, C : Constraint
-
Undocumented
Declaration
Swift
public static func buildEither(first component: ConstraintContainer<T, E>) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildEither(second component: ConstraintContainer<T, E>) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildOptional(_ component: ConstraintContainer<T, E>?) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildLimitedAvailability(_ component: ConstraintContainer<T, E>) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildBlock(_ components: ConstraintContainer<T, E>...) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildArray(_ components: [ConstraintContainer<T, E>]) -> ConstraintContainer<T, E>
-
Undocumented
Declaration
Swift
public static func buildFinalResult(_ component: ConstraintContainer<T, E>) -> [AnyConstraint<T, E>]
-
Undocumented
Declaration
Swift
public struct ConstraintContainer<T, E> where E : Error