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
Yes, true - in the sense that it's not 'static. I was trying to communicate that JsonValue frees the underlying jsonnet value when the JsonValue object is dropped - unlike JsonVal which just "borrows" the underlying jsonnet value. The JsonValue lifetime points to the parent JsonnetVm and not the internally-referenced jsonnet value.
I agree that's confusing when a reader (quite reasonably!) assumes a strict interpretation of "owned" and I should clarify that further in the docs.
Hey, thanks for the great library.
JsonValue
is not currently owned, as it requires a lifetime. The docs say it is owned though 😄https://docs.rs/jsonnet-rs/0.6.0/jsonnet/struct.JsonValue.html
The text was updated successfully, but these errors were encountered: