Skip to content

swift_conformsToProtocol(____)

0x41c edited this page Feb 28, 2022 · 1 revision

swift_conformsToProtocol(_:_:)

Checks and determines the protocol conformance of a given type.

@_silgen_name("swift_conformsToProtocol")
public func swift_conformsToProtocol(
    _ type: Any.Type,
    _ protocol: UnsafeRawPointer
) -> UnsafeRawPointer

Parameters

  • type: The medata of the type to check the conformance of
  • protocol: The protocol to check the metadata for conformance of

Returns

Returns true when conforming and false otherwise.

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally