SwiftstructJetEngine
ComponentTypes
struct JetEngine.ComponentTypes
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolJetEngine.JSONTypeCluster
Members 8
- field
let componentKinds: JetEngine.ComponentKindTable.Type?+0x0 - field
var componentTypesByKind: [A : JetEngine.ComponentModel & JetEngine.ExpressibleByJSON.Type]+0x10 - func
makeInstance(ofKind: A, byDeserializing: JetEngine.JSONObject, using: JetEngine.JSONContext) throws -> JetEngine.ComponentModel - func
registering(_: JetEngine.ComponentModel & JetEngine.ExpressibleByJSON.Type, toKind: A) -> JetEngine.ComponentTypes<A> - init
init() -> JetEngine.ComponentTypes<A> - init
init(JetEngine.ComponentKindTable.Type) -> JetEngine.ComponentTypes<A> - typealias
typealias Base = JetEngine.ComponentModel - typealias
typealias Kind = A
Header
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 }