ScriptSet¶
Constructors¶
create¶
Build a set from a (possibly-unsorted, possibly-duplicate) list of scripts.
Parameters¶
Returns¶
- ScriptSet val^
empty¶
The empty set — useful as a starting point for unions.
Returns¶
- ScriptSet val^
Public Functions¶
size¶
Returns¶
- USize val
contains¶
True iff s is in this set.
Parameters¶
- s: Script
Returns¶
- Bool val
to_array¶
Return the scripts in this set as an Array[Script] val, in the
same byte-sorted order the set stores internally.
Returns¶
resolved¶
The set with Common and Inherited removed. Useful for the
"which actual scripts does this text use?" question — those two
fit anything and rarely belong in the answer.
Returns¶
- ScriptSet val
bytes¶
Package-private view of the underlying sorted byte array. Used by
Scripts.restrict_to to avoid re-encoding scripts on every cp.