fn remove(&self, which: ListSel, region: usize) -> Option<RegionInfoRef> {
        let mut predicate = |found_region: &RegionInfo| {
            found_region.region_base(self.config) == region
        };

        // First try to get it from the head
        let pop_in_first = unsafe {
            pop_if(self.first(which), which, &mut predicate)
        };

        if let Some(_) = pop_in_first {
            pop_in_first
        } else {
            // Otherwise, use the iterator
            for parent_region in self.iter(which) {
                let pop_in_next = unsafe {
                    pop_if(parent_region.next(which), which, &mut predicate)
                };

                if let Some(_) = pop_in_next {
                    return pop_in_next;
                }
            }
            None
        }
    }
/// Remove the given region (by base address) from the given list.
Remove the given region (by base address) from the given list.
Remove the given region ( by base address ) from the given list .
fn remove(&self, which: ListSel, region: usize) -> Option<RegionInfoRef> {
        let mut predicate = |found_region: &RegionInfo| {
            found_region.region_base(self.config) == region
        };
        // First try to get it from the head
        let pop_in_first = unsafe {
            pop_if(self.first(which), which, &mut predicate)
        };
        if let Some(_) = pop_in_first {
            pop_in_first
        } else {
            // Otherwise, use the iterator
            for parent_region in self.iter(which) {
                let pop_in_next = unsafe {
                    pop_if(parent_region.next(which), which, &mut predicate)
                };
                if let Some(_) = pop_in_next {
                    return pop_in_next;
                }
            }
            None
        }
    }
fn remove ( & self , which : ListSel , region : usize ) -> Option < RegionInfoRef > { let mut predicate = | found_region : & RegionInfo | { found_region . region_base ( self . config ) == region } ; // First try to get it from the head let pop_in_first = unsafe { pop_if ( self . first ( which ) , which , & mut predicate ) } ; if let Some ( _ ) = pop_in_first { pop_in_first } else { // Otherwise, use the iterator for parent_region in self . iter ( which ) { let pop_in_next = unsafe { pop_if ( parent_region . next ( which ) , which , & mut predicate ) } ; if let Some ( _ ) = pop_in_next { return pop_in_next ; } } None } }
Remove the given region (by base address) from the given list.
Remove the given region ( by base address ) from the given list .
&self
which
ListSel
region
usize