mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
This gets rid of the weird asymmetry between reading the contents of a BitSet (where we used to always get Int values) and mutating it (where we used to be able to give it values fo any fixed-width integer type).
17 lines
564 B
Swift
17 lines
564 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2021-2022 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
extension BitSet: Hashable {
|
|
public func hash(into hasher: inout Hasher) {
|
|
hasher.combine(_core._storage)
|
|
}
|
|
}
|