SwiftstructlibswiftCore

struct Swift.CollectionDifference

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 24

  1. funcstatic CollectionDifference<A where A: Equatable>.== infix(CollectionDifference<A>, CollectionDifference<A>) -> Bool
  2. fieldlet insertions: [CollectionDifference<A>.Change]+0x0
  3. fieldlet removals: [CollectionDifference<A>.Change]+0x8
  4. funcCollectionDifference.distance(from: CollectionDifference<A>.Index, to: CollectionDifference<A>.Index) -> Int
  5. funcCollectionDifference<A where A: Decodable, A: Encodable>.encode(to: Encoder) throws -> ()
  6. funcCollectionDifference.formIndex(_: inout CollectionDifference<A>.Index, offsetBy: Int) -> ()
  7. funcCollectionDifference<A where A: Hashable>.hash(into: inout Hasher) -> ()
  8. funcCollectionDifference.index(after: CollectionDifference<A>.Index) -> CollectionDifference<A>.Index
  9. funcCollectionDifference.index(before: CollectionDifference<A>.Index) -> CollectionDifference<A>.Index
  10. funcCollectionDifference<A where A: Hashable>.inferringMoves() -> CollectionDifference<A>
  11. funcCollectionDifference.inverse() -> CollectionDifference<A>
  12. initCollectionDifference.init<A where A1: Collection, A1.Element == CollectionDifference<A>.Change>(A1) -> CollectionDifference<A>?
  13. initCollectionDifference<A where A: Decodable, A: Encodable>.init(from: Decoder) throws -> CollectionDifference<A>
  14. subscriptCollectionDifference.subscript.getter : (CollectionDifference<A>.Index) -> CollectionDifference<A>.Change
  15. typealiastypealias Element = Swift.CollectionDifference<A>.Change
  16. typealiastypealias Element = Swift.CollectionDifference<A>.Change
  17. typealiastypealias Index = Swift.CollectionDifference<A>.Index
  18. typealiastypealias Indices = Swift.DefaultIndices<Swift.CollectionDifference<A>>
  19. typealiastypealias Iterator = Swift.IndexingIterator<Swift.CollectionDifference<A>>
  20. typealiastypealias Iterator = Swift.IndexingIterator<Swift.CollectionDifference<A>>
  21. typealiastypealias SubSequence = Swift.Slice<Swift.CollectionDifference<A>>
  22. varvar endIndex: CollectionDifference<A>.Index { get }
  23. varvar hashValue: Int { get }
  24. varvar startIndex: CollectionDifference<A>.Index { get }
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
    }
}