SwiftclassJetUI

class JetUI.ShelvesPresenter

Structure

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

Members 17

  1. deinitdeinit
  2. fieldlet onApplySnapshot: JetEngine.AsyncEvent<UIKit.NSDiffableDataSourceSnapshot<JetEngine.DiffableLens<A>, JetEngine.DiffableLens<JetEngine.ComponentModel>>>+0x20
  3. fieldvar shelves: [A]+0x18
  4. fieldlet workQueue: OS_dispatch_queue+0x10
  5. funcinsert<A where A == A1.Element, A1: Collection>(contentsOf: A1, at: JetUI.ShelvesPresenter<A>.InsertionPoint) -> ()
  6. funcJetUI.ShelvesPresenter< where A: JetEngine.MergeableModel>.merge<A where A == A1.Element, A1: Collection>(contentsOf: A1, handlingProblemsWith: (JetUI.ShelvesPresenter<A>< where A: JetEngine.MergeableModel>.MergeProblem) -> JetUI.ShelvesPresenter<A>< where A: JetEngine.MergeableModel>.MergeSolution) -> ()
  7. funcreapplySnapshot() -> ()
  8. funcreload<A where A1: Collection, A.ID == A1.Element>(A1) -> ()
  9. funcreloadItems<A where A1: Collection, A1.Element == AnyHashable>(A1) -> ()
  10. funcremove<A where A1: Collection, A.ID == A1.Element>(A1) -> ()
  11. funcreplace<A where A == A1.Element, A1: Collection>(_: A1, handlingProblemsWith: (A.ID) -> JetUI.ShelvesPresenter<A>.ReplaceSolution) -> ()
  12. funcsetContents<A where A == A1.Element, A1: Collection>(A1) -> ()
  13. funcupdateEachShelf((inout A) -> ()) -> ()
  14. funcwithUnsafeShelves(([A]) -> ()) -> ()
  15. initJetUI.ShelvesPresenter.__allocating_init() -> JetUI.ShelvesPresenter<A>
  16. typealiastypealias Item = JetEngine.ComponentModel
  17. typealiastypealias Section = A
class ShelvesPresenter<A> where A: JetEngine.ShelfModel {
    enum InsertionPoint {
        case before(A.ID)
        case after(A.ID)
        case start
        case end
    }
    enum ReplaceSolution {
        case insert(at: JetUI.ShelvesPresenter<A>.InsertionPoint)
        case discard
    }
    let workQueue: __C.OS_dispatch_queue
    var shelves: [A]
    let onApplySnapshot: JetEngine.AsyncEvent<UIKit.NSDiffableDataSourceSnapshot<JetEngine.DiffableLens<A>, JetEngine.DiffableLens<any JetEngine.ComponentModel>>>

    init()

    final func withUnsafeShelves(_: @escaping (_: [A]) -> ())
    final func reloadItems<A1>(_: A1) where A1: Swift.Collection, A1.Element == Swift.AnyHashable
    final func setContents<A1>(_: A1) where A == A1.Element, A1: Swift.Collection
    final func reapplySnapshot()
    final func updateEachShelf(_: @escaping (_: inout A) -> ())
    final func insert<A1>(contentsOf: A1, at: JetUI.ShelvesPresenter<A>.InsertionPoint) where A == A1.Element, A1: Swift.Collection
    final func reload<A1>(_: A1) where A1: Swift.Collection, A.ID == A1.Element
    final func remove<A1>(_: A1) where A1: Swift.Collection, A.ID == A1.Element
    final func replace<A1>(_: A1, handlingProblemsWith: @escaping (_: A.ID) -> JetUI.ShelvesPresenter<A>.ReplaceSolution) where A == A1.Element, A1: Swift.Collection

    deinit
}