[][src]Struct dicom_parser::stateful::decode::StatefulDecoder

pub struct StatefulDecoder<D, BD, S, TC> { /* fields omitted */ }

A stateful abstraction for the full DICOM content reading process. This type encapsulates the necessary codecs in order to be as autonomous as possible in the DICOM content reading process. S is the generic parameter type for the original source, D is the parameter type that the decoder interprets as, whereas DB is the parameter type for the basic decoder. TC defines the text codec used underneath.

Implementations

impl<'s> StatefulDecoder<Box<dyn DecodeFrom<dyn Read + 's> + 'static>, BasicDecoder, Box<dyn Read + 's>, Box<dyn TextCodec + 'static>>[src]

pub fn new_with<S: 's>(
    from: S,
    ts: &TransferSyntax,
    charset: SpecificCharacterSet
) -> Result<Self> where
    S: Read
[src]

Create a new DICOM parser for the given transfer syntax and character set.

impl<S> StatefulDecoder<ExplicitVRLittleEndianDecoder, LittleEndianBasicDecoder, S, DefaultCharacterSetCodec> where
    S: Read
[src]

pub fn file_header_parser(from: S) -> Self[src]

Create a new DICOM stateful decoder for reading the file meta header, which is always in Explicit VR Little Endian.

impl<D, BD, S, TC> StatefulDecoder<D, BD, S, TC>[src]

pub fn new(
    from: S,
    decoder: D,
    basic: BD,
    text: TC
) -> StatefulDecoder<D, BD, S, TC>
[src]

Create a new DICOM stateful decoder from its parts.

Trait Implementations

impl<D: Debug, BD: Debug, S: Debug, TC: Debug> Debug for StatefulDecoder<D, BD, S, TC>[src]

impl<S, T: ?Sized, D, BD> StatefulDecode for StatefulDecoder<D, BD, S, DynamicTextCodec> where
    D: DecodeFrom<T>,
    BD: BasicDecode,
    S: DerefMut<Target = T> + Read,
    T: Read
[src]

type Reader = S

fn value_reader(
    &mut self,
    header: &DataElementHeader
) -> Result<Take<&mut Self::Reader>>
[src]

Obtain a reader which outlines the primitive value data from the given source.

Auto Trait Implementations

impl<D, BD, S, TC> RefUnwindSafe for StatefulDecoder<D, BD, S, TC> where
    BD: RefUnwindSafe,
    D: RefUnwindSafe,
    S: RefUnwindSafe,
    TC: RefUnwindSafe

impl<D, BD, S, TC> Send for StatefulDecoder<D, BD, S, TC> where
    BD: Send,
    D: Send,
    S: Send,
    TC: Send

impl<D, BD, S, TC> Sync for StatefulDecoder<D, BD, S, TC> where
    BD: Sync,
    D: Sync,
    S: Sync,
    TC: Sync

impl<D, BD, S, TC> Unpin for StatefulDecoder<D, BD, S, TC> where
    BD: Unpin,
    D: Unpin,
    S: Unpin,
    TC: Unpin

impl<D, BD, S, TC> UnwindSafe for StatefulDecoder<D, BD, S, TC> where
    BD: UnwindSafe,
    D: UnwindSafe,
    S: UnwindSafe,
    TC: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.