Skip to content

swift_dynamicCastMetatypeUnconditional(__________)

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

swift_dynamicCastMetatypeUnconditional(_:_:_:_:_:)

Check to determine if one type is compatable with another if casted.

@_silgen_name("swift_dynamicCastMetatypeUnconditional")
public func swift_dynamicCastMetatypeUnconditional(
    _ sourceType: Any.Type,
    _ targetType: Any.Type,
    _ fileName: UnsafePointer<CChar>?,
    _ lineNumber: UInt?,
    _ columnNumber: UInt?
) -> Any.Type

Parameters

  • sourceType: The source type in the validation.
  • targetType: The type to validate a dynamic cast from.
  • fileName: The source filename from which to report failure.
  • lineNumber: The source line from which to report failure.
  • column: The source column from which to report failure.

Returns

The source type if successful or aborts otherwise

Types
Protocols
Global Typealiases
Global Functions
Clone this wiki locally