Enum dicom_core::value::ValueType[][src]

pub enum ValueType {
Show variants Empty, Item, PixelSequence, Strs, Str, Tags, U8, I16, U16, I32, U32, I64, U64, F32, F64, Date, DateTime, Time,
}

An enum representing an abstraction of a DICOM element’s data value type. This should be the equivalent of PrimitiveValue without the content, plus the Item and PixelSequence entries.

Variants

Empty

No data. Used for any value of length 0.

Item

An item. Used for elements in a SQ, regardless of content.

PixelSequence

An item. Used for the values of encapsulated pixel data.

Strs

A sequence of strings. Used for AE, AS, PN, SH, CS, LO, UI and UC. Can also be used for IS, SS, DS, DA, DT and TM when decoding with format preservation.

Str

A single string. Used for ST, LT, UT and UR, which are never multi-valued.

Tags

A sequence of attribute tags. Used specifically for AT.

U8

The value is a sequence of unsigned 16-bit integers. Used for OB and UN.

I16

The value is a sequence of signed 16-bit integers. Used for SS.

U16

A sequence of unsigned 168-bit integers. Used for US and OW.

I32

A sequence of signed 32-bit integers. Used for SL and IS.

U32

A sequence of unsigned 32-bit integers. Used for UL and OL.

I64

A sequence of signed 64-bit integers. Used for SV.

U64

A sequence of unsigned 64-bit integers. Used for UV and OV.

F32

The value is a sequence of 32-bit floating point numbers. Used for OF and FL.

F64

The value is a sequence of 64-bit floating point numbers. Used for OD, FD and DS.

Date

A sequence of dates. Used for the DA representation.

DateTime

A sequence of date-time values. Used for the DT representation.

Time

A sequence of time values. Used for the TM representation.

Trait Implementations

impl Clone for ValueType[src]

impl Copy for ValueType[src]

impl Debug for ValueType[src]

impl Eq for ValueType[src]

impl PartialEq<ValueType> for ValueType[src]

impl StructuralEq for ValueType[src]

impl StructuralPartialEq for ValueType[src]

Auto Trait Implementations

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> 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.