You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because the constructors of Value return Arc<Value>, it is impossible to derive From implementations in a straightforward way.
impl From<u8> for Arc<Value> {
| ^^^^^--------^^^^^----------
| | | |
| | | `Arc` is not defined in the current crate
| | `u8` is not defined in the current crate
| impl doesn't use only types from inside the current crate
The text was updated successfully, but these errors were encountered:
I gave it a quick shot, mainly to play with Deref and CoerceUnsized etc to try to make an owned and reference type, and have them interact nicely, but wasn't able to get anywhere.
So to do this, we have to do it "the normal way" without exotic Rust features, which is less fun, so I don't plan to do it in the short term unless you really want these From impls to be possible.
Because the constructors of
Value
returnArc<Value>
, it is impossible to deriveFrom
implementations in a straightforward way.The text was updated successfully, but these errors were encountered: