[][src]Enum dicom_encoding::decode::basic::BasicDecoder

pub enum BasicDecoder {
    LE(LittleEndianBasicDecoder),
    BE(BigEndianBasicDecoder),
}

A basic decoder with support for both Little Endian an Big Endian encoding, decided at run-time. Since only two values are possible, this enum may become more efficient than the use of a trait object.

Variants

LE(LittleEndianBasicDecoder)

Decode in Little Endian

BE(BigEndianBasicDecoder)

Decode in Big Endian

Methods

impl BasicDecoder[src]

pub fn new(endianness: Endianness) -> Self[src]

Trait Implementations

impl BasicDecode for BasicDecoder[src]

fn decode_tag<S>(&self, source: S) -> Result<Tag> where
    S: Read
[src]

Decode a DICOM attribute tag from the given source.

impl Clone for BasicDecoder[src]

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

Performs copy-assignment from source. Read more

impl From<Endianness> for BasicDecoder[src]

impl PartialEq<BasicDecoder> for BasicDecoder[src]

impl Debug for BasicDecoder[src]

Auto Trait Implementations

Blanket Implementations

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> From<T> for 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]