class Crystal::GenericModuleType
inherits Crystal::ModuleType
¶
A generic module type, like Enumerable(T).
Included modules
Crystal::ClassVarContainer
Crystal::GenericType
Class methods¶
Methods¶
#can_be_stored?
¶
Returns true
if this type can be assigned to an instance or class
variable, or used in a generic type argument.
As of now, abstract base type such as Object, Reference, Value,
Int, and unbound generic types such as Array(T)
, can't be stored.