Srat.srat.entry.pick: def of bend-osdev-acpi@0.1.2.0 Import: import bend-osdev-acpi@0.1.2.0/srat.bend as Srat Lines 85-90 of bend-osdev-acpi@0.1.2.0/srat.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-acpi@0.1.2.0/srat.bend&start_line=85&end_line=90 import Base import bend-osdev-bytes@0.1.1.1/bytes.bend as B import bend-osdev-acpi@0.1.2.0/error.bend as E def srat.entry.pick(ok: Bool, +k: U32, +off: Nat, +d: B.Octets) -> Result<&2, &2, E.AcpiError, AcpiSratEntry>: match ok: case True{}: Done{srat.typed(U32.to_nat(k), d)} case False{}: Fail{E.AcpiBadEntry{off, k}} Uses (9): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/error.bend&name=AcpiError https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/srat.bend&name=AcpiSratEntry https://jend.leeeet.dev/definition.txt?path=bend-osdev-acpi@0.1.2.0/srat.bend&name=srat.typed https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.1/bytes.bend&name=Octets