CallableType
public protocol CallableType
A type whose instances are callable entities.
-
The parameters of the callable value.
Declaration
Swift
var inputs: [CallableTypeParameter] { get } -
The return type of the callable value.
Declaration
Swift
var output: AnyType { get } -
trueifSelfis the type of a function.Declaration
Swift
var isArrow: Bool { get } -
outputOfUse(mutable:Default implementation) Returns the output type of a reference to a callee having this type and being used mutably iff
isMutatingistrue.Default Implementation
Declaration
Swift
func outputOfUse(mutable isMutating: Bool) -> AnyType -
labelsExtension methodThe labels of the type.
Declaration
Swift
public var labels: LazyMapSequence<[CallableTypeParameter], String?> { get } -
accepts(_:Extension method) Returns
trueiff instances ofselfaccept run-time argument lists with givenlabels.Declaration
Swift
public func accepts<S>(_ labels: S) -> Bool where S : Collection, S.Element == String?
View on GitHub