GenericArguments
public struct GenericArguments : Hashable, Sendable
extension GenericArguments: Collection
extension GenericArguments: CustomStringConvertible
A map from generic parameter to its argument.
-
A key in this map.
Declaration
Swift
public typealias Key = GenericParameterDecl.ID -
A value in this map.
Declaration
Swift
public typealias Value = CompileTimeValue -
The type of this map’s contents.
Declaration
Swift
public typealias Contents = [GenericParameterDecl.ID : Value] -
The contents of
self.Declaration
Swift
fileprivate var contents: Contents -
Creates an empty instance.
Declaration
Swift
public init() -
Creates a new map with the arguments of
t.Declaration
Swift
public init(_ t: BoundGenericType) -
Creates an instance mapping each element of
parameters, which is defined inast, to its skolemized form.Declaration
Swift
public init<S: Sequence>( skolemizing parameters: S, in ast: AST ) where S.Element == GenericParameterDecl.ID -
A collection with the parameters to which arguments are passed.
Declaration
Swift
public var keys: some Collection<Key> { get } -
A collection with the values of the arguments.
Declaration
Swift
public var values: some Collection<Value> { get } -
Accesses the value associated with the given key.
-
Accesses the value associated with the given key.
Declaration
-
Returns a new map containing the keys of
selfwith the values transformedtransform.Declaration
-
Returns
selfmerged withother, applyingcombineto determine the value of any duplicate key.Declaration
-
Returns
selfmerged withother, asserting that duplicate keys have the same value.Declaration
Swift
public func merging(_ other: `Self`) -> GenericArguments -
Appends
suffixtoself.Requires
selfdoes not define a value for any of the values defined insuffix.Declaration
Swift
public mutating func append(_ suffix: `Self`) -
An empty instance.
Declaration
Swift
public static let empty: `Self` -
-
Declaration
Swift
public typealias Index = Contents.Index -
Declaration
Swift
public var startIndex: Index { get } -
Declaration
Swift
public var endIndex: Index { get } -
-
-
Declaration
Swift
public var description: String { get }
View on GitHub