module Crystal::GenericType
¶
A non-instantiated generic type, like Array(T), Hash(K, V) or Enumerable(T).
Included modules
Crystal::InstanceVarContainer
Direct including types
Crystal::GenericClassType
Crystal::GenericModuleType
Methods¶
#instantiated_types
¶
Returns an array of all instantiations of this generic type. NamedTupleType overrides this because it doesn't use positional type arguments.
#run_instance_var_initializer(initializer, instance : GenericClassInstanceType | NonGenericClassType)
¶
(initializer, instance : GenericClassInstanceType | NonGenericClassType)
#run_instance_vars_initializers(real_type, type : GenericClassType | ClassType, instance)
¶
(real_type, type : GenericClassType | ClassType, instance)