Add comparison traits to InputWeightPrediction

* Partial Eq is added to Enable symmetric and transitive comparison.
* Eq is added to enable reflexive comparison.
This commit is contained in:
yancy 2025-05-22 15:44:00 -05:00
parent 855299ab7e
commit 07c4f76052
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ pub const fn predict_weight_from_slices(
/// This helper type collects information about an input to be used in [`predict_weight`] function.
/// It can only be created using the [`new`](InputWeightPrediction::new) function or using other
/// associated constants/methods.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub struct InputWeightPrediction {
script_size: usize,
witness_size: usize,