Trait yaxpeax_core::serialize::Memoable [−][src]
pub trait Memoable: Sized {
type Out: Sized + Serialize + for<'de> Deserialize<'de>;
fn memoize(&self, memos: &HashMap<Self, u32>) -> Self::Out;
fn dememoize(
idx: u32,
memos: &[Self::Out],
dememoized: &mut HashMap<u32, Self>
) -> Self;
}