/// Construct a DICOM object from an iterator of structured elements.
Construct a DICOM object from an iterator of structured elements.
Construct a DICOM object from an iterator of structured elements .
pub fn from_iter_with_dict<I>(iter: I, dict: D) -> Result<Self>
    where
        I: IntoIterator<Item = Result<InMemElement<D>>>,
    {
        let entries: Result<_> = iter.into_iter().map_results(|e| (e.tag(), e)).collect();
        Ok(InMemDicomObject {
            entries: entries?,
            dict,
            len: Length::UNDEFINED,
        })
    }
pub fn from_iter_with_dict < I > ( iter : I , dict : D ) -> Result < Self > where I : IntoIterator < Item = Result < InMemElement < D > > > , { let entries : Result < _ > = iter . into_iter ( ) . map_results ( | e | ( e . tag ( ) , e ) ) . collect ( ) ; Ok ( InMemDicomObject { entries : entries ? , dict , len : Length :: UNDEFINED , } ) }
Construct a DICOM object from an iterator of structured elements.
Construct a DICOM object from an iterator of structured elements .
iter
I
dict
D