RuleChangeProfile.AaChB.mode: def of bend-osdev-apparmor@0.1.0.0 Import: import bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend as RuleChangeProfile Lines 83-99 of bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend&start_line=83&end_line=99 import Base import bend-osdev-apparmor@0.1.0.0/error.bend as E # safe or unsafe, before anything else def AaChB.mode(b: AaChB, n: Nat, src: E.AaSrc) -> Result<&2, &2, E.AaError, AaChB>: match b: case AaChB{m, e, ar, tg}: match m: case 0n: match e: case None{}: match ar: case False{}: Done{AaChB{n, None{}, False{}, tg}} case True{}: Fail{E.AaSrc.syntax(src)} case Some{h}: Fail{E.AaSrc.syntax(src)} case 1n+k: Fail{E.AaSrc.syntax(src)} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe 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=bend-osdev-apparmor@0.1.0.0/error.bend&name=AaError https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/error.bend&name=AaSrc https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/error.bend&name=AaSrc.syntax https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend&name=AaChB