pub trait CacheTrait: 'static + Send + Sync {
// Required methods
fn update(&mut self);
fn len(&self) -> usize;
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static);
}
Required Methods§
fn update(&mut self)
fn update(&mut self)
Call once per frame to evict cache.