Trait Memoize

Source
pub trait Memoize {
    type Value: PartialEq + 'static;

    // Required method
    fn memoized(self) -> Self::Value;
}

Required Associated Types§

Source

type Value: PartialEq + 'static

Required Methods§

Source

fn memoized(self) -> Self::Value

Implementors§

Source§

impl<T> Memoize for Mut<'_, T>

Source§

impl<T> Memoize for Ref<'_, T>

Source§

impl<T: PartialEq + 'static> Memoize for T

Source§

type Value = T