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

This commit is contained in:
Ming-Hung Tsai 2021-02-26 15:14:50 +08:00
parent 74fcb9d505
commit fde0e0e2b8

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;
}
}