pub fn clear(&mut self) {
        self.map.clear();
        // update the guard node if present
        if !self.head.is_null() {
            unsafe {
                self.drop_entries();
                (*self.head).prev = self.head;
                (*self.head).next = self.head;
            }
        }
    }
/// Clears the map of all key-value pairs.
Clears the map of all key-value pairs.
Clears the map of all key - value pairs .
pub fn clear(&mut self) {
        self.map.clear();
        // update the guard node if present
        if !self.head.is_null() {
            unsafe {
                self.drop_entries();
                (*self.head).prev = self.head;
                (*self.head).next = self.head;
            }
        }
    }
pub fn clear ( & mut self ) { self . map . clear ( ) ; // update the guard node if present if ! self . head . is_null ( ) { unsafe { self . drop_entries ( ) ; ( * self . head ) . prev = self . head ; ( * self . head ) . next = self . head ; } } }
Clears the map of all key-value pairs.
Clears the map of all key - value pairs .
&mut self
&mut self