pub fn spends(&self) -> impl Iterator<Item = &Spend<AnchorV>> {
        match self.first {
            Either::Left(ref spend) => Some(spend),
            Either::Right(_) => None,
        }
        .into_iter()
        .chain(self.rest_spends.iter())
    }
/// Iterate over the [`Spend`]s for this transaction, returning them as
/// their generic type.
///
/// # Correctness
///
/// Use this function for serialization.
Iterate over the [`Spend`]s for this transaction, returning them as
their generic type.
Iterate over the [ ` Spend ` ] s for this transaction returning them as their generic type .
pub fn spends(&self) -> impl Iterator<Item = &Spend<AnchorV>> {
        match self.first {
            Either::Left(ref spend) => Some(spend),
            Either::Right(_) => None,
        }
        .into_iter()
        .chain(self.rest_spends.iter())
    }
pub fn spends ( & self ) -> impl Iterator < Item = & Spend < AnchorV > > { match self . first { Either :: Left ( ref spend ) => Some ( spend ) , Either :: Right ( _ ) => None , } . into_iter ( ) . chain ( self . rest_spends . iter ( ) ) }
Iterate over the [`Spend`]s for this transaction, returning them as
their generic type.
Iterate over the [ ` Spend ` ] s for this transaction returning them as their generic type .
&self
correctness
Use this function for serialization.
Use this function for serialization .