Skip to main content

TypeInfo

Standard library class internal.types.rtti.TypeInfo View source
class TypeInfo
class TypeInfo
Fields 20
id int
n_mro int
mro Ptr[int]
offsets Ptr[int]
sorted_mro Ptr[int]
n_slots int
slots Ptr[Tuple[str, int, int]]
n_methods int
methods Ptr[_MethodSlot]
rtti bool
raw_name str
nice_name str
base_name str
n_params int
params Ptr[int]
size int
reference bool
inline_value bool
exception_offset int
system_exit_offset int
Methods 6
value_hash
value_hash(self: Self, data: Ptr[byte], Self: type)

Hash an erased payload using this descriptor's registered adapter.

value_equal
value_equal(self: Self, left: Ptr[byte], right: Ptr[byte], Self: type)

Compare two erased payloads of this descriptor's type.

value_dict
value_dict(self: Self, data: Ptr[byte], Self: type)

Copy an erased dictionary through its typed items iterator.

cache
cache(id: int)
cache(T: type)
is_parent
is_parent(self: Self, T: type, Self: type)
wrap
wrap(arg: Ptr[u8], T: type)
Special methods 6
__raw__
__raw__(self: Self, Self: type)
__iter__
__iter__(self: Self, Self: type)
__str__
__str__(self: Self, Self: type)
__repr__
__repr__(self: Self, Self: type)
__eq__
__eq__(self: Self, other: TypeInfo, Self: type)
__ne__
__ne__(self: Self, other: TypeInfo, Self: type)