Skip to content

class Crystal::NamedTupleInstanceType
inherits Crystal::GenericClassInstanceType

An instantiated named tuple type, like NamedTuple(x: Int32, y: Char).

Class methods

.new(program, entries : Array(NamedArgumentType))

View source

Methods

#common_ancestor(other : NamedTupleInstanceType)

View source

#has_in_type_vars?(type)

View source

#implements?(other)

View source

#name_index(name)

View source

#name_type(name)

View source

#replace_type_parameters(instance)

Replace type parameters in this type with the type parameters of the given instance type.

View source

#restrict(other : Generic, context)

View source

#restrict(other : NamedTupleInstanceType, context)

View source

#restriction_of?(other : NamedTupleInstanceType, owner, strict = false)

View source

#size

View source

#to_s_with_options(io : IO, skip_union_parens : Bool = false, generic_args : Bool = true, codegen : Bool = false) : Nil

View source

#tuple_indexer(index)

View source

#tuple_metaclass_indexer(index)

View source

#type_desc

View source

#unbound?

View source