Merge rust-bitcoin/rust-bitcoin#4549: Add trait to InputWeightDescription
07c4f76052
Add comparison traits to InputWeightPrediction (yancy) Pull request description: * Partial Eq is added to Enable symmetric and transitive comparison. * Eq is added to enable reflexive comparison. ACKs for top commit: apoelstra: ACK 07c4f760523b7a196bf160f585c2b437dea5b532; successfully ran local tests tcharding: ACK07c4f76052
Tree-SHA512: baeb957f000ac0f3be89166243b9cc7126daad06ad6688b811037ca5f5713cad1184c7135b2f4f32235457c0f53eb41304846bdd8a84e57b10a6eff0905224e8
This commit is contained in:
commit
0432102472
|
@ -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