/// Adds a transition from current_id for the given byte to a child node
/// if one doesn't exist. Either way, the corresponding child node ID is
/// returned.
Adds a transition from current_id for the given byte to a child node
if one doesn't exist. Either way, the corresponding child node ID is
returned.
Adds a transition from current_id for the given byte to a child node if one doesn ' t exist . Either way the corresponding child node ID is returned .
fn add_child(&mut self, current_id: TrieNodeID, b: u8) -> TrieNodeID {
        let child = self.child(current_id, b);
        if child.is_some() {
            return child.unwrap();
        }
        self.alloc_child(current_id, b)
    }
fn add_child ( & mut self , current_id : TrieNodeID , b : u8 ) -> TrieNodeID { let child = self . child ( current_id , b ) ; if child . is_some ( ) { return child . unwrap ( ) ; } self . alloc_child ( current_id , b ) }
Adds a transition from current_id for the given byte to a child node
if one doesn't exist.
Adds a transition from current_id for the given byte to a child node if one doesn ' t exist .
&mut self
current_id
TrieNodeID
b
u8