Module value

Source
Expand description

This module includes a high level abstraction over a DICOM data element’s value.

Re-exports§

pub use self::deserialize::Error as DeserializeError;
pub use self::partial::DicomDate;
pub use self::partial::DicomDateTime;
pub use self::partial::DicomTime;
pub use self::partial::PreciseDateTime;
pub use self::person_name::PersonName;
pub use self::range::AsRange;
pub use self::range::DateRange;
pub use self::range::DateTimeRange;
pub use self::range::TimeRange;

Modules§

deserialize
Parsing of primitive values
fragments
Helper module for handling pixel encapsulation into fragments
partial
Handling of partial precision of Date, Time and DateTime values.
person_name
Handling of DICOM values with the PN (person name) value representation as per PS3.5 sect 6.2.
range
Handling of date, time, date-time ranges. Needed for range matching. Parsing into ranges happens via partial precision structures (DicomDate, DicomTime, DicomDatime) so ranges can handle null components in date, time, date-time values.
serialize
Encoding of primitive values.

Structs§

CastValueError
An error type for an attempt of accessing a value in one internal representation as another.
ConvertValueError
An error type for a failed attempt at converting a value into another representation.
DataSetSequence
A sequence of complex data set items of type I.
PixelFragmentSequence
A sequence of pixel data fragments.

Enums§

InvalidValueReadError
Triggered when a value reading attempt fails.
ModifyValueError
Error type for a failed attempt to modify an existing DICOM primitive value.
PrimitiveValue
An enum representing a primitive value from a DICOM element. The result of decoding an element’s data value may be one of the enumerated types depending on its content and value representation.
Value
Representation of a full DICOM value, which may be either primitive or another DICOM object.
ValueType
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.

Traits§

DicomValueType
A trait for a value that maps to a DICOM element data value.

Type Aliases§

C
An aggregation of one or more elements in a value.
InMemFragment
Type alias for the in-memory pixel data fragment data.