pub unsafe fn protect(&mut self, pointer: *const c_void) {
        if let Some(index) = self.segment_index(pointer as usize) {
            let segment = self.allocations.get_mut(index).unwrap();
            segment.protect();
        }
    }
/// Protect the pointer, removing read and write priveleges from the VM page containing it.
Protect the pointer, removing read and write priveleges from the VM page containing it.
Protect the pointer removing read and write priveleges from the VM page containing it .
pub unsafe fn protect(&mut self, pointer: *const c_void) {
        if let Some(index) = self.segment_index(pointer as usize) {
            let segment = self.allocations.get_mut(index).unwrap();
            segment.protect();
        }
    }
pub unsafe fn protect ( & mut self , pointer : * const c_void ) { if let Some ( index ) = self . segment_index ( pointer as usize ) { let segment = self . allocations . get_mut ( index ) . unwrap ( ) ; segment . protect ( ) ; } }
Protect the pointer, removing read and write priveleges from the VM page containing it.
Protect the pointer removing read and write priveleges from the VM page containing it .
&mut self
pointer
*const c_void