dicom_core::value

Module deserialize

Source
Expand description

Parsing of primitive values

Enums§

Traits§

  • A simple trait for types with a decimal form.

Functions§

  • Decode a single DICOM Date (DA) into a chrono::NaiveDate value. As per standard, a full 8 byte representation (YYYYMMDD) is required, otherwise, the operation fails.
  • Decode a single DICOM Date (DA) into a DicomDate value. Unlike parse_date, this method accepts incomplete dates such as YYYY and YYYYMM The precision of the value is stored.
  • parse_datetimeDeprecated
    Retrieve a chrono::DateTime from the given text, while assuming the given UTC offset.
  • Decode the text from the byte slice into a DicomDateTime value, which allows for missing Date / Time components.
  • Decode a single DICOM Time (TM) into a chrono::NaiveTime value.
  • Decode a single DICOM Time (TM) into a DicomTime value. Unlike parse_time, this method allows for missing Time components. The precision of the second fraction is stored and can be returned as a range later.
  • Retrieve an integer in text form.