SwiftstructlibswiftCore
CollectionDifference
struct Swift.CollectionDifference
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.Collection
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.Hashable
- protocolSwift.Sequence
Members 24
- func
static CollectionDifference<A where A: Equatable>.== infix(CollectionDifference<A>, CollectionDifference<A>) -> Bool - field
let insertions: [CollectionDifference<A>.Change]+0x0 - field
let removals: [CollectionDifference<A>.Change]+0x8 - func
CollectionDifference.distance(from: CollectionDifference<A>.Index, to: CollectionDifference<A>.Index) -> Int - func
CollectionDifference<A where A: Decodable, A: Encodable>.encode(to: Encoder) throws -> () - func
CollectionDifference.formIndex(_: inout CollectionDifference<A>.Index, offsetBy: Int) -> () - func
CollectionDifference<A where A: Hashable>.hash(into: inout Hasher) -> () - func
CollectionDifference.index(after: CollectionDifference<A>.Index) -> CollectionDifference<A>.Index - func
CollectionDifference.index(before: CollectionDifference<A>.Index) -> CollectionDifference<A>.Index - func
CollectionDifference<A where A: Hashable>.inferringMoves() -> CollectionDifference<A> - func
CollectionDifference.inverse() -> CollectionDifference<A> - init
CollectionDifference.init<A where A1: Collection, A1.Element == CollectionDifference<A>.Change>(A1) -> CollectionDifference<A>? - init
CollectionDifference<A where A: Decodable, A: Encodable>.init(from: Decoder) throws -> CollectionDifference<A> - subscript
CollectionDifference.subscript.getter : (CollectionDifference<A>.Index) -> CollectionDifference<A>.Change - typealias
typealias Element = Swift.CollectionDifference<A>.Change - typealias
typealias Element = Swift.CollectionDifference<A>.Change - typealias
typealias Index = Swift.CollectionDifference<A>.Index - typealias
typealias Indices = Swift.DefaultIndices<Swift.CollectionDifference<A>> - typealias
typealias Iterator = Swift.IndexingIterator<Swift.CollectionDifference<A>> - typealias
typealias Iterator = Swift.IndexingIterator<Swift.CollectionDifference<A>> - typealias
typealias SubSequence = Swift.Slice<Swift.CollectionDifference<A>> - var
var endIndex: CollectionDifference<A>.Index { get } - var
var hashValue: Int { get } - var
var startIndex: CollectionDifference<A>.Index { get }
Header
struct CollectionDifference<A> { enum Change { case insert(offset: Swift.Int, element: A, associatedWith: Swift.Int?) case remove(offset: Swift.Int, element: A, associatedWith: Swift.Int?) } struct Index { let _offset: Swift.Int static func < (_: Swift.CollectionDifference<A>.Index, _: Swift.CollectionDifference<A>.Index) -> Swift.Bool } let insertions: [Swift.CollectionDifference<A>.Change] let removals: [Swift.CollectionDifference<A>.Change] init?<A1>(_: A1) where A1: Swift.Collection, A1.Element == Swift.CollectionDifference<A>.Change var endIndex: Swift.CollectionDifference<A>.Index { get } var startIndex: Swift.CollectionDifference<A>.Index { get } func index(after: Swift.CollectionDifference<A>.Index) -> Swift.CollectionDifference<A>.Index func index(before: Swift.CollectionDifference<A>.Index) -> Swift.CollectionDifference<A>.Index func inverse() -> Swift.CollectionDifference<A> func distance(from: Swift.CollectionDifference<A>.Index, to: Swift.CollectionDifference<A>.Index) -> Swift.Int func formIndex(_: inout Swift.CollectionDifference<A>.Index, offsetBy: Swift.Int) subscript(_: Swift.CollectionDifference<A>.Index) -> Swift.CollectionDifference<A>.Change { get } }