MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / Variant

Class Variant

cranelift/isle/isle/src/ast.rs:54–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52/// One variant of an enum type.
53#[derive(Clone, PartialEq, Eq, Debug)]
54pub struct Variant {
55 pub name: Ident,
56 pub fields: Fields,
57 pub pos: Pos,
58}
59
60/// The fields of a struct or enum variant, formatted as a struct or tuple.
61#[derive(Clone, PartialEq, Eq, Debug)]

Callers 1

variantsFunction · 0.50

Calls

no outgoing calls

Tested by 1

variantsFunction · 0.40