1 2 3 4 5 6 7
use crate::cache::Cache; pub trait CacheUpdate { type Output; fn update(&mut self, cache: &Cache) -> Option<Self::Output>; }