1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// This file is part of ICU4X. For terms of use, please see the file // called LICENSE at the top level of the ICU4X source tree // (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). //! 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. // The lifetimes here are important for safety and explicitly writing // them out is good even when redundant #![allow(clippy::needless_lifetimes)] pub mod trait_hack; mod yoke; mod yokeable; mod zero_copy_from; #[cfg(feature = "serde")] mod serde; pub use crate::yoke::{CloneableCart, Yoke}; pub use crate::yokeable::Yokeable; pub use crate::zero_copy_from::ZeroCopyFrom;