Trait easy_fs::block_cache::Cache
source · [−]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