Allow condition cache to be cleared

This commit is contained in:
Oliver Hamlet
2018-10-20 21:12:55 +01:00
parent efe01a060d
commit 0f805d80ea
+6
View File
@@ -108,6 +108,12 @@ impl State {
.collect();
self
}
pub fn clear_condition_cache(
&mut self,
) -> Result<(), PoisonError<RwLockWriteGuard<HashMap<Function, bool>>>> {
self.condition_cache.write().map(|mut c| c.clear())
}
}
/// Compound conditions joined by 'or'