fn from(values: Vec<NoteCommitment>) -> Self {
        let mut tree = Self::default();

        if values.is_empty() {
            return tree;
        }

        for cm in values {
            let _ = tree.append(cm);
        }

        tree
    }
/// Builds the tree from a vector of commitments at once.
Builds the tree from a vector of commitments at once.
Builds the tree from a vector of commitments at once .
fn from(values: Vec<NoteCommitment>) -> Self {
        let mut tree = Self::default();
        if values.is_empty() {
            return tree;
        }
        for cm in values {
            let _ = tree.append(cm);
        }
        tree
    }
fn from ( values : Vec < NoteCommitment > ) -> Self { let mut tree = Self :: default ( ) ; if values . is_empty ( ) { return tree ; } for cm in values { let _ = tree . append ( cm ) ; } tree }
Builds the tree from a vector of commitments at once.
Builds the tree from a vector of commitments at once .
values
Vec<NoteCommitment>