pub unsafe fn free(&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.free();
            }
            self.allocations.swap_remove(index);
        }
    }
/// Frees the pointer.
///
/// The pointer must be allocated with `allocate`.
Frees the pointer.
The pointer must be allocated with `allocate`.
Frees the pointer . The pointer must be allocated with ` allocate ` .
pub unsafe fn free(&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.free();
            }
            self.allocations.swap_remove(index);
        }
    }
pub unsafe fn free ( & 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 . free ( ) ; } self . allocations . swap_remove ( index ) ; } }
Frees the pointer.
Frees the pointer .
&mut self
pointer
*const c_void