fn try_from(trans: &Transaction) -> Result<Self, Self::Error> {
        let network_upgrade = match trans {
            Transaction::V5 {
                network_upgrade, ..
            } => network_upgrade,
            Transaction::V1 { .. }
            | Transaction::V2 { .. }
            | Transaction::V3 { .. }
            | Transaction::V4 { .. } => panic!("Zebra only uses librustzcash for V5 transactions"),
        };

        convert_tx_to_librustzcash(trans, *network_upgrade)
    }
/// Convert a Zebra transaction into a librustzcash one.
///
/// # Panics
///
/// If the transaction is not V5. (Currently there is no need for this
/// conversion for other versions.)
Convert a Zebra transaction into a librustzcash one.
Convert a Zebra transaction into a librustzcash one .
fn try_from(trans: &Transaction) -> Result<Self, Self::Error> {
        let network_upgrade = match trans {
            Transaction::V5 {
                network_upgrade, ..
            } => network_upgrade,
            Transaction::V1 { .. }
            | Transaction::V2 { .. }
            | Transaction::V3 { .. }
            | Transaction::V4 { .. } => panic!("Zebra only uses librustzcash for V5 transactions"),
        };
        convert_tx_to_librustzcash(trans, *network_upgrade)
    }
fn try_from ( trans : & Transaction ) -> Result < Self , Self :: Error > { let network_upgrade = match trans { Transaction :: V5 { network_upgrade , .. } => network_upgrade , Transaction :: V1 { .. } | Transaction :: V2 { .. } | Transaction :: V3 { .. } | Transaction :: V4 { .. } => panic ! ( " " ) , } ; convert_tx_to_librustzcash ( trans , * network_upgrade ) }
Convert a Zebra transaction into a librustzcash one.
Convert a Zebra transaction into a librustzcash one .
trans
&Transaction
panics
If the transaction is not V5. (Currently there is no need for this
conversion for other versions.)
If the transaction is not V5 . ( Currently there is no need for this conversion for other versions . )