[cache (rust)] Add Mapping::is_dirty()

This commit is contained in:
Ming-Hung Tsai committed 2021-03-03 12:14:46 +08:00
1 parent 74fcb9d505
commit fde0e0e2b8
1 file changed
+4
+4
View File
@@ -24,6 +24,10 @@ impl Mapping {
pub fn is_valid(&self) -> bool {
return (self.flags & MappingFlags::Valid as u32) != 0;
}
pub fn is_dirty(&self) -> bool {
return (self.flags & MappingFlags::Dirty as u32) != 0;
}
}