def AaRule.any_match

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

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

114# some pattern of the list matches s
115def AaRule.any_match(gs: List<&2, G.AaGlob>, +s: List<&2, U32>) -> Bool:
116  match gs:
117    case Nil{}:
118      False{}
119    case Con{g, t}:
120      Bool.or(G.AaGlob.matches(g, s), AaRule.any_match(t, s))

Uses (6)

Used by (1)