Add clone methods to Page(public) and Frame(private)

This commit is contained in:
Philipp Oppermann
2015-12-31 00:49:34 +01:00
parent f378e6aed3
commit 2198d09695
2 changed files with 5 additions and 0 deletions

View File

@@ -29,6 +29,10 @@ impl Frame {
fn start_address(&self) -> PhysicalAddress {
self.number * PAGE_SIZE
}
fn clone(&self) -> Frame {
Frame { number: self.number }
}
}
pub trait FrameAllocator {