mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
39 lines
1.2 KiB
Swift
39 lines
1.2 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2019 - 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
// FIXME: Remove
|
|
internal protocol _DictionaryNodeProtocol: _NodeProtocol {
|
|
associatedtype Key: Hashable
|
|
associatedtype Value
|
|
|
|
func get(_ key: Key, _ hash: Int, _ shift: Int) -> Value?
|
|
|
|
func containsKey(_ key: Key, _ hash: Int, _ shift: Int) -> Bool
|
|
|
|
func index(
|
|
_ key: Key, _ hash: Int, _ shift: Int, _ skippedBefore: Int
|
|
) -> PersistentDictionary<Key, Value>.Index?
|
|
|
|
func updateOrUpdating(
|
|
_ isStorageKnownUniquelyReferenced: Bool,
|
|
_ key: Key, _ value: Value, _ hash: Int,
|
|
_ shift: Int,
|
|
_ effect: inout _DictionaryEffect<Value>
|
|
) -> Self
|
|
|
|
func removeOrRemoving(
|
|
_ isStorageKnownUniquelyReferenced: Bool,
|
|
_ key: Key, _ hash: Int,
|
|
_ shift: Int,
|
|
_ effect: inout _DictionaryEffect<Value>
|
|
) -> Self
|
|
}
|