def dv.sta

bend-osdev-acpi@0.1.1.0 · aml_device.bend:49

import bend-osdev-acpi@0.1.1.0/aml_device.bend as AmlDevice
import Base
import bend-osdev-word64@0.1.1.0/word64.bend as W
import bend-osdev-acpi@0.1.1.0/error.bend as E
import bend-osdev-acpi@0.1.1.0/aml_value.bend as V

49def dv.sta(m: Maybe<&2, Result<&2, &2, E.AcpiError, V.AmlValue>>) -> Result<&2, &2, E.AcpiError, W.W64>:
50  match m:
51    case None{}:
52      Done{W.W64.from_u32(15)}
53    case Some{Fail{e}}:
54      Fail{e}
55    case Some{Done{v}}:
56      V.AmlValue.to_int(True{}, v)

Uses (8)

Used by (1)