Type Aliasfwcd.swift-utils 4.6.2Utils
Phantom
PhantomWrapped.swift:1typealias Phantom<P> = PhantomWrapped<Void, P>
typealias Phantom<P> = PhantomWrapped<Void, P>
import Utils
struct PhantomWrapped<T, P>
A wrapper that pretends as if it owns another type P
. Mainly useful for using generically specialized functions without actually accepting or returning a value of the type parameter.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.