GenericAttribute
public struct GenericAttribute : TypeErasedValue
[Internal] Used to wrap generic parameters, for sake of generic method stubs.
-
[internal] Returned value
Declaration
Swift
public let value: Any
-
[internal] Used to describe attribute generocity (0 is general, 1 is specific)
Declaration
Swift
public var intValue: Int
-
[internal] Used to compare with other generic attributes
Declaration
Swift
public let compare: (Any, Any, Matcher) -> Bool
-
[internal] Used for formatting messages.
Declaration
Swift
public let shortDescription: String
-
[internal] Creates new GenericAttribute instance, with specified return value and compare closure
Declaration
Swift
public init( value: Any, intValue: Int, shortDescription: String, compare: @escaping (Any,Any,Matcher) -> Bool )
Parameters
value
Returned value
compare
Used to compare with other generic attributes values