StructureNumbaType#

class rbc.structure_type.StructureNumbaType(*args, **kwargs)#

Represents a struct numba type.

Attributes

StructureNumbaType.is_internal

Returns True if this class is an internally defined Numba type by virtue of the module in which it is instantiated, False else.

StructureNumbaType.key

A property used for __eq__, __ne__ and __hash__.

StructureNumbaType.mangling_args

Returns (basename, args) where basename is the name of the type and args is a sequence of parameters of the type.

StructureNumbaType.mutable

StructureNumbaType.reflected

Methods

StructureNumbaType.__init__(name)

StructureNumbaType.augment(other)

Augment this type with the other.

StructureNumbaType.can_convert_from(...)

Similar to can_convert_to, but in reverse.

StructureNumbaType.can_convert_to(typingctx, ...)

Check whether this type can be converted to the other.

StructureNumbaType.cast_python_value(args)

StructureNumbaType.dump([tab])

StructureNumbaType.is_precise()

Whether this type is precise, i.e. can be part of a successful type inference.

StructureNumbaType.unify(typingctx, other)

Try to unify this type with the other.