[][src]Struct dicom_parser::parser::DicomParser

pub struct DicomParser<D, BD, S: ?Sized, TC> { /* fields omitted */ }

A data structure for parsing DICOM data. 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's type, D is the parameter type that the decoder interprets as, whereas DB is the parameter type for the basic decoder. TextCodec defines the text codec used underneath.

Methods

impl<D, BD, S: ?Sized, TC> DicomParser<D, BD, S, TC> where
    D: Decode<Source = S>,
    BD: BasicDecode,
    S: Read,
    TC: TextCodec
[src]

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

Create a new DICOM parser from its parts.

Trait Implementations

impl<S: ?Sized, D, BD> Parse<S> for DicomParser<D, BD, S, Box<dyn TextCodec>> where
    D: Decode<Source = S>,
    BD: BasicDecode,
    S: Read
[src]

impl<S: ?Sized, D, BD, TC> Debug for DicomParser<D, BD, S, TC> where
    D: Debug,
    BD: Debug,
    TC: Debug
[src]

Auto Trait Implementations

impl<D, BD, S: ?Sized, TC> Send for DicomParser<D, BD, S, TC> where
    BD: Send,
    D: Send,
    S: Send,
    TC: Send

impl<D, BD, S: ?Sized, TC> Unpin for DicomParser<D, BD, S, TC> where
    BD: Unpin,
    D: Unpin,
    S: Unpin,
    TC: Unpin

impl<D, BD, S: ?Sized, TC> Sync for DicomParser<D, BD, S, TC> where
    BD: Sync,
    D: Sync,
    S: Sync,
    TC: Sync

impl<D, BD, S: ?Sized, TC> UnwindSafe for DicomParser<D, BD, S, TC> where
    BD: UnwindSafe,
    D: UnwindSafe,
    S: UnwindSafe,
    TC: UnwindSafe

impl<D, BD, S: ?Sized, TC> RefUnwindSafe for DicomParser<D, BD, S, TC> where
    BD: RefUnwindSafe,
    D: RefUnwindSafe,
    S: RefUnwindSafe,
    TC: RefUnwindSafe

Blanket Implementations

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.

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

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

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