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

Method get_variant_value

aiscript-vm/src/object.rs:259–261  ·  view source on GitHub ↗
(&self, variant_name: InternedString<'gc>)

Source from the content-addressed store, hash-verified

257 }
258
259 pub fn get_variant_value(&self, variant_name: InternedString<'gc>) -> Option<Value<'gc>> {
260 self.variants.get(&variant_name).copied()
261 }
262}
263
264impl<'gc> Class<'gc> {

Callers 3

generate_matchMethod · 0.80
generate_functionMethod · 0.80
validate_enum_variantMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected