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

No files matched your search

+16
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 {