pub fn find_output_with_amount(
    transaction: &Transaction,
    amount: Amount<NonNegative>,
) -> Vec<transparent::Output> {
    // TODO: shielded coinbase - Heartwood
    transaction
        .outputs()
        .iter()
        .filter(|o| o.value == amount)
        .cloned()
        .collect()
}
/// Returns a list of outputs in `Transaction`, which have a value equal to `Amount`.
Returns a list of outputs in `Transaction`, which have a value equal to `Amount`.
Returns a list of outputs in ` Transaction ` which have a value equal to ` Amount ` .
pub fn find_output_with_amount(
    transaction: &Transaction,
    amount: Amount<NonNegative>,
) -> Vec<transparent::Output> {
    // TODO: shielded coinbase - Heartwood
    transaction
        .outputs()
        .iter()
        .filter(|o| o.value == amount)
        .cloned()
        .collect()
}
pub fn find_output_with_amount ( transaction : & Transaction , amount : Amount < NonNegative > , ) -> Vec < transparent :: Output > { // TODO: shielded coinbase - Heartwood transaction . outputs ( ) . iter ( ) . filter ( | o | o . value == amount ) . cloned ( ) . collect ( ) }
Returns a list of outputs in `Transaction`, which have a value equal to `Amount`.
Returns a list of outputs in ` Transaction ` which have a value equal to ` Amount ` .
transaction
&Transaction
amount
Amount<NonNegative>