pub struct OwnedValue(_);
An owned value.
Owned values are safe to share and are cheap to clone.
Get an owned value from an arbitrary Value
.
The given value doesn't need to be Send + Sync + 'static
.
The structure of the given value will be streamed into
a shared datastructure. That means this method is more
expensive for more complex values.
Prefer the from_shared
method where possible.
Get an owned value from an already shared Value
.
The given value must be Send + Sync + 'static
.
Deprecated since 0.1.2:
use collect
instead
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static