Skip to content

FunctionMetadata_Flags

tevelee edited this page Jul 25, 2026 · 2 revisions

FunctionMetadata.Flags

The flags that describe some function metadata.

public struct Flags 

Properties

bits

Flags as represented in bits.

public let bits: Int

numParams

The number of parameters in this function.

public var numParams: Int 

convention

The calling convention for this function.

public var convention: FunctionConvention 

`throws`

Whether or not this function throws.

public var `throws`: Bool 

hasParamFlags

Whether or not this function has parameter flags describing the parameters.

public var hasParamFlags: Bool 

isEscaping

Whether or not this function is @escaping.

public var isEscaping: Bool 

isDifferentiable

Whether this function is @differentiable.

public var isDifferentiable: Bool 

hasGlobalActor

Whether this function is isolated to a global actor.

public var hasGlobalActor: Bool 

isAsync

Whether this function is async.

public var isAsync: Bool 

isSendable

Whether this function is @Sendable.

public var isSendable: Bool 

hasExtendedFlags

Whether this function has extended trailing flags.

public var hasExtendedFlags: Bool 
Types
Protocols
Global Typealiases
Global Variables
Global Functions

Clone this wiki locally