pub trait Cacheable { // Required method fn dirty(&self) -> bool; }
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.
Used to check if the item needs to be written out or if it can be discarded.