This commit extracts low-level get_value() to preserve the origin as much as possible. get::() would run Value-to-Value deserialization, and the origin field would be lost there.
For scalar types, we could instead leverage get::() as the deserializer implemented for Value type invokes Value::into_() function:
This commit extracts low-level get_value() to preserve the origin as much as possible. get::() would run Value-to-Value deserialization, and the origin field would be lost there.
For scalar types, we could instead leverage get::() as the deserializer implemented for Value type invokes Value::into_() function: