fn duplicate_sapling_spend(transaction: &mut Transaction) -> sapling::Nullifier {
    match transaction {
        Transaction::V4 {
            sapling_shielded_data: Some(ref mut shielded_data),
            ..
        } => duplicate_sapling_spend_in_shielded_data(shielded_data),
        Transaction::V5 {
            sapling_shielded_data: Some(ref mut shielded_data),
            ..
        } => duplicate_sapling_spend_in_shielded_data(shielded_data),
        _ => unreachable!("Transaction has no Sapling shielded data"),
    }
}
/// Duplicate a Sapling spend inside a `transaction`.
///
/// Returns the nullifier of the duplicate spend.
///
/// # Panics
///
/// Will panic if the `transaction` does not have Sapling spends.
Duplicate a Sapling spend inside a `transaction`.
Returns the nullifier of the duplicate spend.
Duplicate a Sapling spend inside a ` transaction ` . Returns the nullifier of the duplicate spend .
fn duplicate_sapling_spend(transaction: &mut Transaction) -> sapling::Nullifier {
    match transaction {
        Transaction::V4 {
            sapling_shielded_data: Some(ref mut shielded_data),
            ..
        } => duplicate_sapling_spend_in_shielded_data(shielded_data),
        Transaction::V5 {
            sapling_shielded_data: Some(ref mut shielded_data),
            ..
        } => duplicate_sapling_spend_in_shielded_data(shielded_data),
        _ => unreachable!("Transaction has no Sapling shielded data"),
    }
}
fn duplicate_sapling_spend ( transaction : & mut Transaction ) -> sapling :: Nullifier { match transaction { Transaction :: V4 { sapling_shielded_data : Some ( ref mut shielded_data ) , .. } => duplicate_sapling_spend_in_shielded_data ( shielded_data ) , Transaction :: V5 { sapling_shielded_data : Some ( ref mut shielded_data ) , .. } => duplicate_sapling_spend_in_shielded_data ( shielded_data ) , _ => unreachable ! ( " " ) , } }
Duplicate a Sapling spend inside a `transaction`.
Duplicate a Sapling spend inside a ` transaction ` .
transaction
&mut Transaction
panics
Will panic if the `transaction` does not have Sapling spends.
Will panic if the ` transaction ` does not have Sapling spends .