pub unsafe fn object_from_token<T>(token: u64) -> Option<Arc<T>>Expand description
Adopt the strong reference carried by an object token read from a value
buffer. A zero token is a contract violation and yields None.
ยงSafety
token must be zero or a token written by object_to_token (or by a
consumer that cloned the object before encoding) for a T allocation,
exactly once: adopting the same token twice double-frees.