This repository was archived by the owner on Oct 17, 2021. It is now read-only.
  
  
  - 
                Notifications
    
You must be signed in to change notification settings  - Fork 31
 
GenericParameter
        mattt edited this page Mar 28, 2020 
        ·
        8 revisions
      
    A generic parameter.
public struct GenericParameter: Hashable, CodableA generic type or function declaration includes a generic parameter clause,
consisting of one or more generic parameters enclosed by angle brackets (<>).
Each generic parameter has a name,
and may also specify a type constraint.
For example,
the following structure declaration has two generic parameters:
struct S<T, U: Equatable>Codable, Hashable
Creates an instance initialized with the given syntax node.
public init(_ node: GenericParameterSyntax)The generic parameter name.
let name: StringThe generic parameter type, if any.
let type: String?var description: StringThe generic parameter attributes.
let attributes: [Attribute]Generated at 2020-08-02T12:14:07+0000 using swift-doc 1.0.0-beta.3.
Types
- AssociatedType
 - Attribute
 - Attribute.Argument
 - Class
 - ConditionalCompilationBlock
 - ConditionalCompilationBlock.Branch
 - DeclarationCollector
 - Deinitializer
 - Enumeration
 - Enumeration.Case
 - Extension
 - Function
 - Function.Parameter
 - Function.Signature
 - GenericParameter
 - GenericRequirement
 - GenericRequirement.Relation
 - Import
 - Initializer
 - Modifier
 - Operator
 - Operator.Kind
 - PrecedenceGroup
 - PrecedenceGroup.Associativity
 - PrecedenceGroup.Relation
 - Protocol
 - Structure
 - Subscript
 - Typealias
 - Variable
 - Variable.Accessor
 - Variable.Accessor.Kind