Skip to content

Reflection

Module: core.reflection
Source: core/reflection.zn

Field

One field of a struct type


Fields:

comptime struct Field {
index: comptime_int,
name: comptime_str,
ty: zeen_type,
}

Variant

One variant of an enum type

Payload kinds: none, value, struct


Fields:

comptime struct Variant {
index: comptime_int,
name: comptime_str,
payload: comptime_str,
ty: zeen_type,
fields: [0]Field,
}