use super::CacheRecord;
/// A trait for types that can be converted into a cache record. Any given
/// type that implements this trait can be inserted into a cache.
pub trait IntoCache {
/// Consume the type, producing a [`CacheRecord`]
fn into_cache(self) -> CacheRecord;
}