GenericAttribute

public struct GenericAttribute : GenericAttributeType

[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] Creates new GenericAttribute instance, with specified return value and compare closure

    Declaration

    Swift

    public init(_ value: Any, _ intValue: Int, _ compare: @escaping (Any,Any,Matcher) -> Bool)

    Parameters

    value

    Returned value

    compare

    Used to compare with other generic attributes values