Crate yoke[][src]

Expand description

This crate provides Yoke, a data structure that allows one to “yoke” Cow-like borrowed data types to their backing storage, enabling one to use Cow (etc) in zero-copy deserialization with dynamic lifetimes for the borrowed data, for example caching it.

See the documentation of Yoke for more details.



A Cow-like borrowed object “yoked” to its backing data.



A Yokeable type is essentially one with a covariant lifetime parameter, matched to the parameter in the trait definition. The trait allows one to cast the covariant lifetime to and from 'static.