KeyPathConstraint
public struct KeyPathConstraint<T, V, E> : Constraint where E : Error
Undocumented
-
Declaration
Swift
public typealias InputType = T
-
Declaration
Swift
public typealias ErrorType = E
-
Undocumented
Declaration
Swift
public init<C>(_ keyPath: KeyPath<T, V>, constraint: C) where V == C.InputType, E == C.ErrorType, C : Constraint
-
Undocumented
Declaration
Swift
public init<C>(_ keyPath: KeyPath<T, V>, constraintBuilder: () -> C) where V == C.InputType, E == C.ErrorType, C : Constraint
-
Declaration
Swift
public func evaluate(with input: T) -> Result<Void, Summary<E>>