SwiftstructJetEngine

struct JetEngine.ComponentTypes

Structure

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

inherits{}

Members 8

  1. fieldlet componentKinds: JetEngine.ComponentKindTable.Type?+0x0
  2. fieldvar componentTypesByKind: [A : JetEngine.ComponentModel & JetEngine.ExpressibleByJSON.Type]+0x10
  3. funcmakeInstance(ofKind: A, byDeserializing: JetEngine.JSONObject, using: JetEngine.JSONContext) throws -> JetEngine.ComponentModel
  4. funcregistering(_: JetEngine.ComponentModel & JetEngine.ExpressibleByJSON.Type, toKind: A) -> JetEngine.ComponentTypes<A>
  5. initinit() -> JetEngine.ComponentTypes<A>
  6. initinit(JetEngine.ComponentKindTable.Type) -> JetEngine.ComponentTypes<A>
  7. typealiastypealias Base = JetEngine.ComponentModel
  8. typealiastypealias Kind = A
struct ComponentTypes<A> where A: Swift.Hashable, A: Swift.RawRepresentable, A.RawValue == Swift.String {
    let componentKinds: (any JetEngine.ComponentKindTable.Type)?
    var componentTypesByKind: [A : any (JetEngine.ComponentModel & JetEngine.ExpressibleByJSON).Type]

    init()
    init(_: any JetEngine.ComponentKindTable.Type)

    func registering(_: any (JetEngine.ComponentModel & JetEngine.ExpressibleByJSON).Type, toKind: A) -> JetEngine.ComponentTypes<A>
    func makeInstance(ofKind: A, byDeserializing: JetEngine.JSONObject, using: JetEngine.JSONContext) throws -> any JetEngine.ComponentModel
}