/// Deletes the metadata hash associated with this label, or returns an
/// error if a matching leaf node is not found.
Deletes the metadata hash associated with this label, or returns an
error if a matching leaf node is not found.
Deletes the metadata hash associated with this label or returns an error if a matching leaf node is not found .
fn delete_leaf(&mut self, label: &Label) -> Result<(), HashTreeError> {
        match self.root.write_leaf(label, &None) {
            WriteLeafOutcome::LeafUpdated => Ok(()),
            WriteLeafOutcome::NonLeafNodeFound => Err(HashTreeError::NonLeafLabel),
            WriteLeafOutcome::NotFound => Err(HashTreeError::UnknownLeafLabel),
        }
    }
fn delete_leaf ( & mut self , label : & Label ) -> Result < ( ) , HashTreeError > { match self . root . write_leaf ( label , & None ) { WriteLeafOutcome :: LeafUpdated => Ok ( ( ) ) , WriteLeafOutcome :: NonLeafNodeFound => Err ( HashTreeError :: NonLeafLabel ) , WriteLeafOutcome :: NotFound => Err ( HashTreeError :: UnknownLeafLabel ) , } }
Deletes the metadata hash associated with this label, or returns an
error if a matching leaf node is not found.
Deletes the metadata hash associated with this label or returns an error if a matching leaf node is not found .
&mut self
label
&Label