(&self)
| 14 | |
| 15 | impl<'gc> StringValue<'gc> { |
| 16 | pub fn as_str(&self) -> &str { |
| 17 | match self { |
| 18 | StringValue::Interned(s) => s.to_str().unwrap(), |
| 19 | StringValue::Dynamic(s) => s, |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | // Convert back to Value based on heuristics |
| 24 | pub fn into_value(self, ctx: Context<'gc>, should_intern: bool) -> Value<'gc> { |
no test coverage detected