pub(crate) fn insert_child(&mut self, address: NodeAddress, coverage: usize) -> MalwareBrotResult<()> {
        self.cover_count += coverage;
        if let Some(children) = &mut self.children {
            children.addresses.push(address);
            Ok(())
        } else {
            Err(MalwareBrotError::InsertBeforeNest)
        }
    }
/// Inserts a routing child into the node. Make sure the child node is also in the tree or you get a dangling reference
Inserts a routing child into the node. Make sure the child node is also in the tree or you get a dangling reference
Inserts a routing child into the node . Make sure the child node is also in the tree or you get a dangling reference
pub(crate) fn insert_child(&mut self, address: NodeAddress, coverage: usize) -> MalwareBrotResult<()> {
        self.cover_count += coverage;
        if let Some(children) = &mut self.children {
            children.addresses.push(address);
            Ok(())
        } else {
            Err(MalwareBrotError::InsertBeforeNest)
        }
    }
pub ( crate ) fn insert_child ( & mut self , address : NodeAddress , coverage : usize ) -> MalwareBrotResult < ( ) > { self . cover_count += coverage ; if let Some ( children ) = & mut self . children { children . addresses . push ( address ) ; Ok ( ( ) ) } else { Err ( MalwareBrotError :: InsertBeforeNest ) } }
Inserts a routing child into the node.
Inserts a routing child into the node .
&mut self
address
NodeAddress
coverage
usize
&mut self
address
NodeAddress
coverage
usize