load(as:)

Loads the symbol as a specific type.

linking.swift:120
func load<T>(as: T.Type = T.self) -> T

Parameters

as

The type to load the symbol as.

Returns

The symbol loaded as the specified type.