AceFlags
Flags stored in an ACE header.
Inherits from: Iterable[AceFlag]
Constructor
AceFlags ...flags -> AceFlags overload 1 of 2
Constructs a flag set from symbols.
Parameters
| Name | Type | Description |
|---|---|---|
...flags |
AceFlag |
AceFlags flags -> AceFlags overload 2 of 2
Constructs a flag set from one iterable of symbols.
Parameters
| Name | Type | Description |
|---|---|---|
flags |
Iterable[AceFlag] |
Class Methods
from_int value -> AceFlags
Constructs flags from a native integer, preserving unknown bits.
Parameters
| Name | Type | Description |
|---|---|---|
value |
Int |
Native flag bits. |
Fields
int @ Int[get]The native integer flags.
Methods
(band)[S @ AceFlags] other -> S
Returns the flags set in both.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bnot)[S @ AceFlags]() -> S
Returns the flags of the type that are not set.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
(bor)[S @ AceFlags] other -> S
Returns the flags set in either.
Parameters
| Name | Type | Description |
|---|---|---|
self |
S |
Receiver. |
other |
S |
(bxor)[S @ AceFlags] 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 |
AceFlag |