MCPcopy Index your code
hub / github.com/aiscriptdev/aiscript / Enum

Class Enum

aiscript-vm/src/object.rs:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232#[derive(Collect)]
233#[collect(no_drop)]
234pub struct Enum<'gc> {
235 pub name: InternedString<'gc>,
236 // Variant name -> value mapping, default value is Value::Nil
237 pub variants: HashMap<InternedString<'gc>, Value<'gc>>,
238 // Method name -> function mapping
239 pub methods: HashMap<InternedString<'gc>, Value<'gc>>,
240 pub static_methods: HashMap<InternedString<'gc>, Value<'gc>>,
241}
242
243#[derive(Collect)]
244#[collect(no_drop)]

Callers 2

generate_stmtMethod · 0.85
enum_declarationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected