fn check_contig(&self) -> bool {
        if !self.contiguous {
            return true;
        }
        let mut base = 0;
        for (key, ps) in self.frames.iter() {
            let new_base = ps.frame.paddr() - key * PAGE_SIZE;
            if base == 0 || new_base == base {
                base = new_base;
            } else {
                return false;
            }
        }
        true
    }
/// Check whether it is not physically contiguous when it should be
Check whether it is not physically contiguous when it should be
Check whether it is not physically contiguous when it should be
fn check_contig(&self) -> bool {
        if !self.contiguous {
            return true;
        }
        let mut base = 0;
        for (key, ps) in self.frames.iter() {
            let new_base = ps.frame.paddr() - key * PAGE_SIZE;
            if base == 0 || new_base == base {
                base = new_base;
            } else {
                return false;
            }
        }
        true
    }
fn check_contig ( & self ) -> bool { if ! self . contiguous { return true ; } let mut base = 0 ; for ( key , ps ) in self . frames . iter ( ) { let new_base = ps . frame . paddr ( ) - key * PAGE_SIZE ; if base == 0 || new_base == base { base = new_base ; } else { return false ; } } true }
Check whether it is not physically contiguous when it should be
Check whether it is not physically contiguous when it should be
&self
&self