f6c963cb413836d4a4f968a4ddd340632d14df67
into_rc_any and push_value to Object
This commit introduces the `into_rc_any` and `push_value` methods to the `Object` trait. The `into_rc_any` method allows for efficient, zero-cost downcasting of `Rc<Self>` to `Rc<dyn Any>`. This is a crucial step for enabling more flexible dynamic dispatch and type manipulation within the VM. The `push_value` method is implemented for series types (`ScalarSeries`, `ValueSeries`, `RecordSeries`) to allow pushing values directly onto them. This simplifies the `push` intrinsic function, removing the need for manual downcasting within its implementation. The default implementation for non-series objects panics, enforcing that only mutable series support this operation. Additionally, `ScalarValue` now includes a `from_value` method to facilitate converting `Value` back into concrete scalar types. This improves type safety and reduces boilerplate code when handling scalar conversions.
Description
No description provided
Languages
Rust
100%