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

Class VariantCase

cmd/gravity/src/codegen/ir.rs:127–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126#[derive(Debug, Clone)]
127pub struct VariantCase {
128 pub name: String,
129 /// `None` for unit cases.
130 pub payload: Option<GoType>,
131 pub dispatch: CaseDispatch,
132}
133
134/// How a variant case is represented in Go. See `crate::CaseDispatchKind`
135/// for the underlying decision; this enum carries the resolved Go names so

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected