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:
parent
855299ab7e
commit
07c4f76052
|
@ -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.
|
/// 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
|
/// It can only be created using the [`new`](InputWeightPrediction::new) function or using other
|
||||||
/// associated constants/methods.
|
/// associated constants/methods.
|
||||||
#[derive(Copy, Clone, Debug)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
|
||||||
pub struct InputWeightPrediction {
|
pub struct InputWeightPrediction {
|
||||||
script_size: usize,
|
script_size: usize,
|
||||||
witness_size: usize,
|
witness_size: usize,
|
||||||
|
|
Loading…
Reference in New Issue