Flags
constraint Flagsimport Flags from Wax;Value operations and bit-set manipulation supplied by flags types. Add, Remove, and Toggle return a new value; they do not mutate the receiver.
Members
GetHashCodemethod
public fn GetHashCode() : uint32Returns a hash consistent with value equality.
ToStringmethod
public fn ToString() : stringReturns the value's text representation.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Appends the text representation and returns the number of UTF-8 bytes appended.
Equalsmethod
public fn Equals(this other) : boolTests value equality.
CompareTomethod
public fn CompareTo(this other) : int32Returns negative, zero, or positive for less, equal, or greater.
HasValuemethod
public fn HasValue(this flags) : boolTests whether any supplied flag bit is set.
HasAllmethod
public fn HasAll(this flags) : boolTests whether every supplied flag bit is set; an empty mask succeeds.
Addmethod
public fn Add(this flags) : thisReturns the union with the supplied flag bits.
Removemethod
public fn Remove(this flags) : thisReturns a value with the supplied flag bits cleared.
Togglemethod
public fn Toggle(this flags) : thisReturns a value with the supplied flag bits inverted.