ParentProtocol

interface ParentProtocol

An opaque protocol identity for an immediate parent.

Protocols are compared by identity (===), not equals. Keep one instance per parent protocol and reuse it for every declaration that belongs to it.

Properties

Link copied to clipboard
abstract val description: String

A readable name used when this protocol is declared under the wrong parent.

Functions

Link copied to clipboard
abstract fun accepts(parent: Container): Boolean

Whether parent implements this protocol.