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

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

Implementations

Create a basic decoder for the given byte order.

Trait Implementations

Retrieve the source’s endianness, as expected by this decoder.

Decode an unsigned short value from the given source.

Decode a sequence of unsigned shorts value from the given source into the given destination. Read more

Decode an unsigned long value from the given source.

Decode a sequence of unsigned long values from the given source into the given destination. Read more

Decode an unsigned very long value from the given source.

Decode a sequence of unsigned very long values from the given source into the given destination. Read more

Decode a signed short value from the given source.

Decode a sequence of signed short values from the given source into the given destination. Read more

Decode a signed long value from the given source.

Decode a sequence of signed long values from the given source into the given destination. Read more

Decode a signed very long value from the given source.

Decode a sequence of signed very long values from the given source into the given destination. Read more

Decode a single precision float value from the given source.

Decode a sequence of single precision float values from the given source into the given destination. Read more

Decode a double precision float value from the given source.

Decode a sequence of double precision float values from the given source into the given destination. Read more

Decode a DICOM attribute tag from the given source.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.