MCPcopy Create free account
hub / github.com/arcjet/gravity / Bindings

Class Bindings

cmd/gravity/src/codegen/bindings.rs:19–31  ·  view source on GitHub ↗

The WIT bindings for a world.

Source from the content-addressed store, hash-verified

17
18/// The WIT bindings for a world.
19pub struct Bindings<'a> {
20 resolve: &'a Resolve,
21 world: &'a World,
22 /// The cumulative output tokens containing the Go bindings.
23 // TODO(#16): Don't use the internal bindings.out field
24 pub out: Tokens<Go>,
25
26 /// The identifier of the Go variable containing the WebAssembly bytes.
27 raw_wasm_var: GoIdentifier,
28
29 /// The sizes of the architecture.
30 sizes: &'a SizeAlign,
31}
32
33impl<'a> Bindings<'a> {
34 /// Creates a new bindings generator for the selected world.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected