WIP
This commit is contained in:
1 parent
f550d37602
commit
5ee1779fee
13 files changed
+502
-400
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user