struct
Memo
pub struct Memo<T: 'static> {
/* private fields */
}A cached derived value. Readers are only notified when the computed value actually changes (by PartialEq).
Methods
with
pub fn with<R>(&self, f: impl FnOnce(&T) -> R) -> RBorrow the current value, subscribing the current effect.