pub trait Cacheable {
    // Required method
    fn dirty(&self) -> bool;
}
Expand description

Trait that allows for checking if an implementor is dirty. Useful for types that are cached so it can be checked if they need to be committed to disk.

Required Methods§

source

fn dirty(&self) -> bool

Used to check if the item needs to be written out or if it can be discarded.

Implementors§

source§

impl<T: 'static + Copy + Default> Cacheable for VecCache<T>