Protocol

@objcMembers
public final class Protocol : Type

Describes Swift protocol

  • Declaration

    Swift

    public class var kind: String { get }
  • Returns “protocol”

    Declaration

    Swift

    public override var kind: String { get }
  • list of all declared associated types with their names as keys

    Declaration

    Swift

    public var associatedTypes: [String : AssociatedType] { get set }
  • list of generic requirements

    Declaration

    Swift

    public override var genericRequirements: [GenericRequirement] { get set }
  • Declaration

    Swift

    override public func diffAgainst(_ object: Any?) -> DiffableResult