pub fn clear(&mut self) {
        BurstTrieNode::drop(self.root);
        self.root = ptr::null_mut();
        self.len = 0;
    }
/// Clears all elements from the map.
///
/// # Examples
///
/// ```rust
/// use burst_trie::BurstTrieMap;
///
/// let mut a = BurstTrieMap::new();
/// assert_eq!(a.len(), 0);
/// a.insert("a", 0u32);
/// assert_eq!(a.len(), 1);
/// a.clear();
/// assert_eq!(a.len(), 0);
/// ```
Clears all elements from the map.
Clears all elements from the map .
pub fn clear(&mut self) {
        BurstTrieNode::drop(self.root);
        self.root = ptr::null_mut();
        self.len = 0;
    }
pub fn clear ( & mut self ) { BurstTrieNode :: drop ( self . root ) ; self . root = ptr :: null_mut ( ) ; self . len = 0 ; }
Clears all elements from the map.
Clears all elements from the map .
&mut self
&mut self
examples
```rust
use burst_trie::BurstTrieMap.


` ` ` rust use burst_trie :: BurstTrieMap .