[BasicContainers] Add early drafts for RigidSet/RigidDictionary

This commit is contained in:
Karoy Lorentey committed 2026-02-16 17:15:59 -08:00
1 parent 934ad786d2
commit bf9a7033a0
36 files changed
+2411 -51

No files matched your search

@@ -42,7 +42,7 @@ internal struct _ChunkedBitsForwardIterator {
.shiftedDown(by: b),
count: end.bit - b)
}
let c = UInt(_Word.capacity) - b
let c = _Word._capacity - b
position.value += c
return (bits: words[w].shiftedDown(by: b), count: c)
}
@@ -85,7 +85,7 @@ internal struct _ChunkedBitsBackwardIterator {
extension IteratorProtocol where Element == Bool {
mutating func _nextChunk(
maximumCount: UInt = UInt(_Word.capacity)
maximumCount: UInt = _Word._capacity
) -> (bits: _Word, count: UInt) {
assert(maximumCount <= _Word.capacity)
var bits = _Word.empty