CallableTypeParameter
public struct CallableTypeParameter : Hashable, Sendable
extension CallableTypeParameter: CustomStringConvertible
A parameter in a callable type.
-
The label of the parameter.
Declaration
Swift
public let label: String? -
The type of the parameter.
Declaration
Swift
public let type: AnyType -
trueiff the parameter has a default argument.Declaration
Swift
public let hasDefault: Bool -
trueif arguments to the parameter can be passed implicitly.Declaration
Swift
public let isImplicit: Bool -
Creates an instance with the given properties.
Declaration
Swift
public init( label: String? = nil, type: AnyType, hasDefault: Bool = false, isImplicit: Bool = false ) -
trueiff the parameter is implicit or has a default argument.Declaration
Swift
public var isElidible: Bool { get } -
Returns a copy of this instance with its type replaced by
transformer(&m, t).See also
TypeProtocol.transform(mutating:_:)Declaration
Swift
public func transform<M>( mutating m: inout M, _ transformer: (inout M, AnyType) -> TypeTransformAction ) -> Self -
Declaration
Swift
public var description: String { get }
View on GitHub