def AaRule.opt_match

bend-osdev-apparmor@0.1.0.0 · rule.bend:107

import bend-osdev-apparmor@0.1.0.0/rule.bend as Rule
import Base
import bend-osdev-apparmor@0.1.0.0/glob.bend as G

107def AaRule.opt_match(m: Maybe<&2, G.AaGlob>, +s: List<&2, U32>) -> Bool:
108  match m:
109    case None{}:
110      True{}
111    case Some{g}:
112      G.AaGlob.matches(g, s)

Uses (6)

Used by (5)