AmlValue.AmlValue.type: def of bend-osdev-acpi@0.1.1.0 Import: import bend-osdev-acpi@0.1.1.0/aml_value.bend as AmlValue Lines 37-56 of bend-osdev-acpi@0.1.1.0/aml_value.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.1.0/aml_value.bend&start_line=37&end_line=56 import Base # ObjectType codes (chapter 19, ObjectType): 0 uninitialized, 1 integer, # 2 string, 3 buffer, 4 package, 5 field unit, 6 device, 7 event, 8 method, # 9 mutex, 10 operation region, 11 power resource, 12 processor, 13 thermal # zone, 14 buffer field, 16 debug object def AmlValue.type(v: AmlValue) -> U32: match v: case AmlUninit{}: 0 case AmlInt{x}: 1 case AmlStr{s}: 2 case AmlBuf{b}: 3 case AmlPkg{xs}: 4 case AmlRef{l}: 0 case AmlObj{p, k}: k Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.1.0/aml_value.bend&name=AmlValue