| 232 | #[derive(Collect)] |
| 233 | #[collect(no_drop)] |
| 234 | pub 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)] |
no outgoing calls
no test coverage detected