pub struct VerificationCache {
pub entries: HashMap<PropertyHash, CachedResult>,
}Expand description
Verification cache.
Fields§
§entries: HashMap<PropertyHash, CachedResult>Implementations§
Source§impl VerificationCache
impl VerificationCache
pub fn new() -> Self
Sourcepub fn store(&mut self, hash: PropertyHash, result: CachedResult)
pub fn store(&mut self, hash: PropertyHash, result: CachedResult)
Store a result in the cache.
Sourcepub fn lookup(&self, hash: PropertyHash) -> Option<&CachedResult>
pub fn lookup(&self, hash: PropertyHash) -> Option<&CachedResult>
Look up a cached result.
Sourcepub fn invalidate(&mut self, changes: &[ChangeEvent])
pub fn invalidate(&mut self, changes: &[ChangeEvent])
Invalidate entries affected by changes.
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for VerificationCache
impl Clone for VerificationCache
Source§fn clone(&self) -> VerificationCache
fn clone(&self) -> VerificationCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerificationCache
impl Debug for VerificationCache
Source§impl Default for VerificationCache
impl Default for VerificationCache
Source§fn default() -> VerificationCache
fn default() -> VerificationCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VerificationCache
impl RefUnwindSafe for VerificationCache
impl Send for VerificationCache
impl Sync for VerificationCache
impl Unpin for VerificationCache
impl UnsafeUnpin for VerificationCache
impl UnwindSafe for VerificationCache
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more