add Debug trait to PartitionWitness to enable trace information output (#1437)

This commit is contained in:
Icer 2023-12-21 16:33:42 +08:00 committed by GitHub
parent 7eff4e2751
commit cb3f91a003
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -297,7 +297,7 @@ impl<F: Field> Witness<F> for PartialWitness<F> {
/// `PartitionWitness` holds a disjoint-set forest of the targets respecting a circuit's copy constraints.
/// The value of a target is defined to be the value of its root in the forest.
#[derive(Clone)]
#[derive(Clone, Debug)]
pub struct PartitionWitness<'a, F: Field> {
pub values: Vec<Option<F>>,
pub representative_map: &'a [usize],