Skip to content

FunctionMetadata

Azoy edited this page May 6, 2021 · 2 revisions

FunctionMetadata

The metadata structure that represents a function type in Swift.

public struct FunctionMetadata: Metadata, LayoutWrapper 

ABI Stability: Unstable across all platforms

| macOS | iOS/tvOS | watchOS | Linux | Windows |
|-------|----------|---------|-------|---------|
| NA    | NA       | NA      | NA    | NA      |

Inheritance

Metadata, LayoutWrapper

Properties

ptr

Backing function metadata pointer.

public let ptr: UnsafeRawPointer

flags

The flags specific to function metadata.

public var flags: Flags 

resultType

The result type for this function.

public var resultType: Any.Type 

resultMetadata

The result type metadata for this function.

public var resultMetadata: Metadata 

paramTypes

An array of parameter types for this function.

public var paramTypes: [Any.Type] 

paramMetadata

An array of parameter type metadata for this function.

public var paramMetadata: [Metadata] 

paramFlags

An array of parameter flags that describe each parameter for this function, if any.

public var paramFlags: [ParamFlags] 
Types
Protocols
Global Variables
Global Functions
Clone this wiki locally