[][src]Enum dicom_encoding::transfer_syntax::Codec

pub enum Codec<A> {
    None,
    Unsupported,
    EncapsulatedPixelData,
    PixelData(A),
    Dataset(A),
}

Description regarding the encoding and decoding requirements of a transfer syntax. This is also used as a means to describe whether pixel data is encapsulated and whether this implementation supports it.

Variants

None

No codec is given, nor is it required.

Unsupported

Custom encoding and decoding of the entire data set is required, but not supported. This could be used by a stub of Deflated Explicit VR Little Endian, for example.

EncapsulatedPixelData

Custom encoding and decoding of the pixel data set is required, but not supported. The program should still be able to parse DICOM data sets and fetch the pixel data in its encapsulated form.

PixelData(A)

A pixel data encapsulation codec is required and provided for reading and writing pixel data.

Dataset(A)

A full, custom data set codec is required and provided.

Trait Implementations

impl<A: PartialEq> PartialEq<Codec<A>> for Codec<A>[src]

impl<A: Clone> Clone for Codec<A>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<A: Debug> Debug for Codec<A>[src]

Auto Trait Implementations

impl<A> Send for Codec<A> where
    A: Send

impl<A> Unpin for Codec<A> where
    A: Unpin

impl<A> Sync for Codec<A> where
    A: Sync

impl<A> UnwindSafe for Codec<A> where
    A: UnwindSafe

impl<A> RefUnwindSafe for Codec<A> where
    A: RefUnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]