def AaXMode.show

bend-osdev-apparmor@0.1.0.0 · rule_file.bend:100

import bend-osdev-apparmor@0.1.0.0/rule_file.bend as RuleFile
import Base

100def AaXMode.show(m: AaXMode) -> String:
101  match m:
102    case AaXIx{}:
103      "ix"
104    case AaXUx{s}:
105      Bool.pick(String, s, "Ux", "ux")
106    case AaXPx{+s, f}:
107      Bool.pick(String, s, "P", "p") ++ AaXMode.show.fb(f, s) ++ "x"
108    case AaXCx{+s, f}:
109      Bool.pick(String, s, "C", "c") ++ AaXMode.show.fb(f, s) ++ "x"

Uses (5)

Used by (0)

No other definition uses this definition.