This commit is contained in:
Dominik Werder
2024-09-12 17:13:50 +02:00
parent f550d37602
commit 5ee1779fee
13 changed files with 502 additions and 400 deletions

View File

@@ -72,6 +72,22 @@ impl CacheUsage {
};
Ok(ret)
}
pub fn is_cache_write(&self) -> bool {
match self {
CacheUsage::Use => true,
CacheUsage::Ignore => false,
CacheUsage::Recreate => true,
}
}
pub fn is_cache_read(&self) -> bool {
match self {
CacheUsage::Use => true,
CacheUsage::Ignore => false,
CacheUsage::Recreate => false,
}
}
}
impl fmt::Display for CacheUsage {