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

Method new

cmd/gravity/src/codegen/factory.rs:30–32  ·  view source on GitHub ↗

Create a new factory generator with the given config.

(config: FactoryConfig<'a>)

Source from the content-addressed store, hash-verified

28impl<'a> FactoryGenerator<'a> {
29 /// Create a new factory generator with the given config.
30 pub fn new(config: FactoryConfig<'a>) -> Self {
31 Self { config }
32 }
33
34 /// Get the instance name from the analyzed imports.
35 pub fn instance_name(&self) -> &GoIdentifier {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected