Metatype
open class Metatype<T> : Hashable, Equatable where T : AnyObject
Class for meta types. The class implements Hashable and Equatable.
-
Initializes a new instance of the Metatype class with the specified name.
Declaration
Swift
public init(closure: @escaping () -> T, name: String)
Parameters
name
The name of the metatype.
Return Value
The newly created Metatype object.
-
The name of the Metatype.
Declaration
Swift
open var name: String
-
Gets an instance of the Metatype.
Declaration
Swift
open func getInstance() -> T
-
Declaration
Swift
public func hash(into hasher: inout Hasher)