ConcreteTypeBox
private struct ConcreteTypeBox<Base> : TypeBox where Base : TypeProtocol
A box wrapping an instance of Base.
-
The value wrapped by this instance.
Declaration
Swift
let base: Base -
Declaration
Swift
func hash(into hasher: inout Hasher) -
Declaration
Swift
func equals<Other>(_ other: Other) -> Bool where Other : TypeBox -
Declaration
Swift
func unwrap() -> any TypeProtocol -
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