pub fn insert_nested_child(
        &mut self,
        scale_index: i32,
        coverage: usize,
    ) -> MalwareBrotResult<()> {
        self.cover_count += coverage;
        if let Some(_) = &self.children {
            Err(MalwareBrotError::DoubleNest)
        } else {
            self.children = Some(NodeChildren {
                nested_scale: scale_index,
                addresses: SmallVec::new(),
            });
            Ok(())
        }
    }
/// Add a nested child and converts the node from a leaf to a routing node.
/// Throws an error if the node is already a routing node with a nested node.
Add a nested child and converts the node from a leaf to a routing node.
Throws an error if the node is already a routing node with a nested node.
Add a nested child and converts the node from a leaf to a routing node . Throws an error if the node is already a routing node with a nested node .
pub fn insert_nested_child(
        &mut self,
        scale_index: i32,
        coverage: usize,
    ) -> MalwareBrotResult<()> {
        self.cover_count += coverage;
        if let Some(_) = &self.children {
            Err(MalwareBrotError::DoubleNest)
        } else {
            self.children = Some(NodeChildren {
                nested_scale: scale_index,
                addresses: SmallVec::new(),
            });
            Ok(())
        }
    }
pub fn insert_nested_child ( & mut self , scale_index : i32 , coverage : usize , ) -> MalwareBrotResult < ( ) > { self . cover_count += coverage ; if let Some ( _ ) = & self . children { Err ( MalwareBrotError :: DoubleNest ) } else { self . children = Some ( NodeChildren { nested_scale : scale_index , addresses : SmallVec :: new ( ) , } ) ; Ok ( ( ) ) } }
Add a nested child and converts the node from a leaf to a routing node.
Add a nested child and converts the node from a leaf to a routing node .
&mut self
scale_index
i32
coverage
usize
&mut self
scale_index
i32
coverage
usize