Mask
macOS extended ACE permission bits.
Example
Inherits from: Iterable[MaskBit]
Constructor
Mask ...flags -> Mask overload 1 of 2
Constructs a flag set from symbols.
Parameters
| Name | Type | Description |
|---|---|---|
...flags |
MaskBit |
Mask flags -> Mask overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
flags |
Iterable[MaskBit] |
Methods
(band)[S @ Mask] other -> S
Returns the flags set in both.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bnot)[S @ Mask]() -> S
Returns the flags of the type that are not set.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
(bor)[S @ Mask] other -> S
Returns the flags set in either.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bxor)[S @ Mask] other -> S
Returns the flags set in exactly one.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
contains flag -> Bool
Tests whether all flags named by flag are set.
Parameters
| Name | Type | Description |
|---|---|---|
flag |
MaskBit |