Enum dicom_core::value::ValueType
source · pub enum ValueType {
Show 18 variants
Empty,
DataSetSequence,
PixelSequence,
Strs,
Str,
Tags,
U8,
I16,
U16,
I32,
U32,
I64,
U64,
F32,
F64,
Date,
DateTime,
Time,
}
Expand description
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 DataSetSequence
and PixelSequence
entries.
Variants§
Empty
No data. Used for any value of length 0.
DataSetSequence
A data set sequence. Used for values with the SQ representation when not empty.
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 8-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 16-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§
source§impl PartialEq for ValueType
impl PartialEq for ValueType
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more