Skip to main content

remember_with_key

Function remember_with_key 

Source
pub fn remember_with_key<K, T>(key: K, init: impl FnOnce() -> T) -> T
where K: PartialEq + Clone + 'static, T: Clone + 'static,
Expand description

Like remember, but computed again whenever key changes. Compose’s remember(key) { }.