RuleChangeProfile.AaChB.set_target: 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 38-49 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=38&end_line=49 import Base import bend-osdev-apparmor@0.1.0.0/glob.bend as G import bend-osdev-apparmor@0.1.0.0/error.bend as E def AaChB.set_target(b: AaChB, g: G.AaGlob, src: E.AaSrc) -> Result<&2, &2, E.AaError, AaChB>: match b: case AaChB{m, e, ar, tg}: match ar: case False{}: Fail{E.AaSrc.syntax(src)} case True{}: match tg: case None{}: Done{AaChB{m, e, True{}, Some{g}}} case Some{h}: 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=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/glob.bend&name=AaGlob https://jend.leeeet.dev/definition.txt?path=bend-osdev-apparmor@0.1.0.0/rule_change_profile.bend&name=AaChB