MCPcopy Create free account
hub / github.com/aiscriptdev/aiscript / HasCollectVtable

Interface HasCollectVtable

aiscript-arena/src/types.rs:97–99  ·  view source on GitHub ↗

Helper trait to materialize vtables in static memory.

Source from the content-addressed store, hash-verified

95 pub fn new<T: Collect>() -> Self {
96 // Helper trait to materialize vtables in static memory.
97 trait HasCollectVtable {
98 const VTABLE: CollectVtable;
99 }
100
101 impl<T: Collect> HasCollectVtable for T {
102 const VTABLE: CollectVtable = CollectVtable::vtable_for::<T>();

Callers

nothing calls this directly

Implementers 1

newaiscript-arena/src/types.rs

Calls

no outgoing calls

Tested by

no test coverage detected