egui::util::cache

Trait CacheTrait

Source
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;
}

Required Methods§

Source

fn update(&mut self)

Call once per frame to evict cache.

Source

fn len(&self) -> usize

Number of values currently in the cache.

Source

fn as_any_mut(&mut self) -> &mut dyn Any

Implementors§

Source§

impl<Value: 'static + Send + Sync, Computer: 'static + Send + Sync> CacheTrait for FrameCache<Value, Computer>