pub fn new_with<S: 's>(
        from: S,
        ts: &TransferSyntax,
        charset: SpecificCharacterSet,
    ) -> Result<Self>
    where
        S: Read,
    {
        let basic = ts.basic_decoder();
        let decoder = ts
            .decoder()
            .context(UnsupportedTransferSyntax { ts: ts.name() })?;
        let text = charset
            .codec()
            .context(UnsupportedCharacterSet { charset })?;

        Ok(DynStatefulDecoder::new(
            Box::from(from),
            decoder,
            basic,
            text,
        ))
    }
/// Create a new DICOM parser for the given transfer syntax and character set.
Create a new DICOM parser for the given transfer syntax and character set.
Create a new DICOM parser for the given transfer syntax and character set .
pub fn new_with<S: 's>(
        from: S,
        ts: &TransferSyntax,
        charset: SpecificCharacterSet,
    ) -> Result<Self>
    where
        S: Read,
    {
        let basic = ts.basic_decoder();
        let decoder = ts
            .decoder()
            .context(UnsupportedTransferSyntax { ts: ts.name() })?;
        let text = charset
            .codec()
            .context(UnsupportedCharacterSet { charset })?;
        Ok(DynStatefulDecoder::new(
            Box::from(from),
            decoder,
            basic,
            text,
        ))
    }
pub fn new_with < S : ' s > ( from : S , ts : & TransferSyntax , charset : SpecificCharacterSet , ) -> Result < Self > where S : Read , { let basic = ts . basic_decoder ( ) ; let decoder = ts . decoder ( ) . context ( UnsupportedTransferSyntax { ts : ts . name ( ) } ) ? ; let text = charset . codec ( ) . context ( UnsupportedCharacterSet { charset } ) ? ; Ok ( DynStatefulDecoder :: new ( Box :: from ( from ) , decoder , basic , text , ) ) }
Create a new DICOM parser for the given transfer syntax and character set.
Create a new DICOM parser for the given transfer syntax and character set .
from
S
ts
&TransferSyntax
charset
SpecificCharacterSet
from
S
ts
&TransferSyntax
charset
SpecificCharacterSet