pub trait Cache {
    fn read<T, V>(&self, offset: usize, f: impl FnOnce(&T) -> V) -> V;
fn modify<T, V>(&mut self, offset: usize, f: impl FnOnce(&mut T) -> V) -> V; }

Required methods

The read-only mapper to the block cache

The mutable mapper to the block cache

Implementors