Coverage Report

Created: 2024-02-20 21:15

/builds/xfbs/cindy/common/src/cache/invalidate.rs
Line
Count
Source (jump to first uncovered line)
1
use crate::Mutation;
2
3
/// Something which can be invalidated.
4
pub trait Invalidatable<M = Mutation> {
5
0
    fn invalidated_by(&self, _mutation: &M) -> bool {
6
0
        true
7
0
    }
8
}
9
10
impl<T> Invalidatable<()> for T {}
11
12
/// Something which produces invalidations.
13
pub trait Invalidator<M = Mutation> {
14
    fn mutations(&self) -> Vec<M>;
15
}