def AaFile.letter

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

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

275# a set of file permissions from letters (r w a l k m x), for queries: None
276# if a letter is not one of them
277def AaFile.letter(+h: U32) -> Maybe<&2, Nat>:
278  Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 114), Some{0n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 119), Some{1n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 97), Some{2n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 108), Some{3n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 107), Some{4n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 109), Some{5n}, Bool.pick(Maybe<&2, Nat>, U32.is_eq(h, 120), Some{6n}, None{})))))))

Uses (5)

Used by (1)