BinUpdateResult
public struct BinUpdateResult<Backstorage> where Backstorage : Collection
Struct that contains updated storage and changes applied to it
Example:
struct AnyModel {
// any implementation
}
let result: BinUpdateResult<[AnyModel]> = // returned by a function
// result.bin is a type of [AnyModel]
// result.changes is a type of CollectionChanges<[Int]>
-
Any type that conforms to Collection
Declaration
Swift
public let bin: Backstorage -
CollectionChanges where element is an array of Index type that used by the Backstorage
Let’s say we have a model
AnyModeland the storage isArray<AnyModel>then changes will be a type ofCollectionChanges<[Int]>sinceIntis an index ofArray<AnyModel>Declaration
Swift
public let changes: CollectionChanges<[Backstorage.Index]>
BinUpdateResult Structure Reference