-
Hashes the salient parts of the wrapped value into
hasher.Declaration
Swift
func hash(into hasher: inout Hasher) -
Returns whether the value wrapped inside
selfis equal to that wrapped insideother.Declaration
Swift
func equals<Other>(_ other: Other) -> Bool where Other : TypeBox -
Returns the value wrapped inside
selfwith its type erased.Declaration
Swift
func unwrap() -> any TypeProtocol -
Returns the value wrapped inside
selfas an instance ofTornilif that value has a different type.Declaration
Swift
func unwrap<T>(as: T.Type) -> T? where T : TypeProtocol -
Applies
TypeProtocol.transform(mutating:_:)onmand the types that are part ofself.Declaration
Swift
func transformParts<M>( mutating m: inout M, _ transformer: (inout M, AnyType) -> TypeTransformAction ) -> any TypeProtocol
View on GitHub