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

Method export

cmd/gravity/src/codegen/func.rs:52–63  ·  view source on GitHub ↗
(result: GoResult, sizes: &'a SizeAlign)

Source from the content-addressed store, hash-verified

50 /// Create a new exported function.
51 #[allow(dead_code, reason = "halfway through refactor of func bindings")]
52 pub fn export(result: GoResult, sizes: &'a SizeAlign) -> Self {
53 Self {
54 direction: Direction::Export,
55 args: Vec::new(),
56 result,
57 tmp: 0,
58 body: Tokens::new(),
59 block_storage: Vec::new(),
60 blocks: Vec::new(),
61 sizes,
62 }
63 }
64
65 /// Create a new exported function.
66 pub fn import(param_name: &'a GoIdentifier, result: GoResult, sizes: &'a SizeAlign) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected