pub fn loudness_range_multiple<'a>(
        iter: impl IntoIterator<Item = &'a Self>,
    ) -> Result<f64, Error> {
        use smallvec::SmallVec;

        let h = iter
            .into_iter()
            .map(|e| {
                if !e.mode.contains(Mode::LRA) {
                    Err(Error::InvalidMode)
                } else {
                    Ok(&e.short_term_block_energy_history)
                }
            })
            .collect::<Result<SmallVec<[_; 16]>, _>>()?;

        crate::history::History::loudness_range_multiple(&*h).map_err(|_| Error::InvalidMode)
    }
/// Get loudness range (LRA) of programme in LU across multiple instances.
///
/// Calculates loudness range according to EBU 3342.
// FIXME: Should maybe be IntoIterator? Maybe AsRef<Self>?
Get loudness range (LRA) of programme in LU across multiple instances.
Calculates loudness range according to EBU 3342.
FIXME: Should maybe be IntoIterator.
Get loudness range ( LRA ) of programme in LU across multiple instances . Calculates loudness range according to EBU 3342 . FIXME : Should maybe be IntoIterator .
pub fn loudness_range_multiple<'a>(
        iter: impl IntoIterator<Item = &'a Self>,
    ) -> Result<f64, Error> {
        use smallvec::SmallVec;
        let h = iter
            .into_iter()
            .map(|e| {
                if !e.mode.contains(Mode::LRA) {
                    Err(Error::InvalidMode)
                } else {
                    Ok(&e.short_term_block_energy_history)
                }
            })
            .collect::<Result<SmallVec<[_; 16]>, _>>()?;
        crate::history::History::loudness_range_multiple(&*h).map_err(|_| Error::InvalidMode)
    }
pub fn loudness_range_multiple < ' a > ( iter : impl IntoIterator < Item = & ' a Self > , ) -> Result < f64 , Error > { use smallvec :: SmallVec ; let h = iter . into_iter ( ) . map ( | e | { if ! e . mode . contains ( Mode :: LRA ) { Err ( Error :: InvalidMode ) } else { Ok ( & e . short_term_block_energy_history ) } } ) . collect :: < Result < SmallVec < [ _ ; 16 ] > , _ > > ( ) ? ; crate :: history :: History :: loudness_range_multiple ( & * h ) . map_err ( | _ | Error :: InvalidMode ) }
Get loudness range (LRA) of programme in LU across multiple instances.
Get loudness range ( LRA ) of programme in LU across multiple instances .
iter
impl IntoIterator<Item = &'a Self>
iter
impl IntoIterator<Item = &'a Self>