pub fn append(&mut self, cm: NoteCommitment) -> Result<(), NoteCommitmentTreeError> {
        if self.inner.append(&cm.into()) {
            // Invalidate cached root
            self.cached_root.replace(None);
            Ok(())
        } else {
            Err(NoteCommitmentTreeError::FullTree)
        }
    }
/// Appends a note commitment to the leafmost layer of the tree.
///
/// Returns an error if the tree is full.
Appends a note commitment to the leafmost layer of the tree.
Returns an error if the tree is full.
Appends a note commitment to the leafmost layer of the tree . Returns an error if the tree is full .
pub fn append(&mut self, cm: NoteCommitment) -> Result<(), NoteCommitmentTreeError> {
        if self.inner.append(&cm.into()) {
            // Invalidate cached root
            self.cached_root.replace(None);
            Ok(())
        } else {
            Err(NoteCommitmentTreeError::FullTree)
        }
    }
pub fn append ( & mut self , cm : NoteCommitment ) -> Result < ( ) , NoteCommitmentTreeError > { if self . inner . append ( & cm . into ( ) ) { // Invalidate cached root self . cached_root . replace ( None ) ; Ok ( ( ) ) } else { Err ( NoteCommitmentTreeError :: FullTree ) } }
Appends a note commitment to the leafmost layer of the tree.
Appends a note commitment to the leafmost layer of the tree .
&mut self
cm
NoteCommitment