Searched refs:page_content (Results 1 – 3 of 3) sorted by relevance
156 pub fn page_content(&self, idx: usize) -> Result<Option<VolatileSlice>> { in page_content() method256 assert!(staging_memory.page_content(0).unwrap().is_none()); in copy_marks_as_present()258 assert!(staging_memory.page_content(i).unwrap().is_some()); in copy_marks_as_present()261 assert!(staging_memory.page_content(i).unwrap().is_none()); in copy_marks_as_present()263 assert!(staging_memory.page_content(12).unwrap().is_some()); in copy_marks_as_present()265 assert!(staging_memory.page_content(i).unwrap().is_none()); in copy_marks_as_present()274 assert!(staging_memory.page_content(0).unwrap().is_none()); in page_content_default_is_none()287 let page = staging_memory.page_content(0).unwrap().unwrap(); in page_content_returns_content()297 assert!(staging_memory.page_content(199).is_ok()); in page_content_out_of_range()298 match staging_memory.page_content(200) { in page_content_out_of_range()[all …]
106 pub fn page_content(&self, idx: usize) -> Result<Option<VolatileSlice>> { in page_content() method365 assert_eq!(swap_file.page_content(0).unwrap().is_none(), true); in page_content_default_is_none()376 let page = swap_file.page_content(0).unwrap().unwrap(); in page_content_returns_content()386 assert_eq!(swap_file.page_content(199).is_ok(), true); in page_content_out_of_range()387 match swap_file.page_content(200) { in page_content_out_of_range()394 let page = swap_file.page_content(idx).unwrap().unwrap(); in assert_page_content()498 assert_eq!(swap_file.page_content(0).unwrap().is_none(), true); in clear_range()560 assert_eq!(swap_file.page_content(0).unwrap().is_none(), true); in erase_from_disk()
297 if let Some(page_slice) = region.staging_memory.page_content(idx_in_region)? { in handle_page_fault()305 } else if let Some(page_slice) = region.file.page_content(idx_in_region)? { in handle_page_fault()799 .page_content(self.cur_page) in trim_pages()