Skip to content

Permission

POSIX read/write/execute permission bits.

Example

let rw = Permission(:READ:, :WRITE:)

Inherits from: Iterable[PermissionBit]

Constructor

Permission ...flags -> Permission overload 1 of 2

Constructs a flag set from symbols.

Parameters

NameTypeDescription
...flags PermissionBit

Permission flags -> Permission overload 2 of 2

Constructs a flag set from one iterable of symbols.

Parameters

NameTypeDescription
flags Iterable[PermissionBit]

Methods

(band)[S @ Permission] other -> S

Returns the flags set in both.

Parameters

NameTypeDescription
self S Receiver.
other S

(bnot)[S @ Permission]() -> S

Returns the flags of the type that are not set.

Parameters

NameTypeDescription
self S Receiver.

(bor)[S @ Permission] other -> S

Returns the flags set in either.

Parameters

NameTypeDescription
self S Receiver.
other S

(bxor)[S @ Permission] other -> S

Returns the flags set in exactly one.

Parameters

NameTypeDescription
self S Receiver.
other S

contains flag -> Bool

Tests whether all flags named by flag are set.

Parameters

NameTypeDescription
flag PermissionBit