pub(crate) fn swap_remove_index(&mut self, index: usize) -> Option<(K, V)> {
        let raw_bucket = match self.entries.get(index) {
            Some(entry) => self.find_index(entry.hash, index).unwrap(),
            None => return None,
        };
        unsafe {
            let (_, key, value) = self.swap_remove_bucket(raw_bucket);
            Some((key, value))
        }
    }
/// Remove an entry by swapping it with the last
Remove an entry by swapping it with the last
Remove an entry by swapping it with the last
pub(crate) fn swap_remove_index(&mut self, index: usize) -> Option<(K, V)> {
        let raw_bucket = match self.entries.get(index) {
            Some(entry) => self.find_index(entry.hash, index).unwrap(),
            None => return None,
        };
        unsafe {
            let (_, key, value) = self.swap_remove_bucket(raw_bucket);
            Some((key, value))
        }
    }
pub ( crate ) fn swap_remove_index ( & mut self , index : usize ) -> Option < ( K , V ) > { let raw_bucket = match self . entries . get ( index ) { Some ( entry ) => self . find_index ( entry . hash , index ) . unwrap ( ) , None => return None , } ; unsafe { let ( _ , key , value ) = self . swap_remove_bucket ( raw_bucket ) ; Some ( ( key , value ) ) } }
Remove an entry by swapping it with the last
Remove an entry by swapping it with the last
&mut self
index
usize
&mut self
index
usize