UnifiableType
public protocol UnifiableType
Instances of conforming types can be unified such that they represent to the same value.
-
Unifies
lhswithrhs, otherwise throws aUnificationError.Declaration
Swift
static func unify(lhs: Self, _ rhs: Self) throws -
Performs
actionas an operation onselfsuch that theselfpreserves its initialgluevalue if the operation fails.Declaration
Swift
static func attempt(value: Self, _ action: () throws -> ()) throws
View on GitHub
UnifiableType Protocol Reference