Module deserialize

Source
Expand description

Parsing of primitive values

Enums§

Error

Traits§

Ten
A simple trait for types with a decimal form.

Functions§

parse_date
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.
parse_date_partial
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.
parse_datetime_partial
Decode the text from the byte slice into a DicomDateTime value, which allows for missing Date / Time components.
parse_time
Decode a single DICOM Time (TM) into a chrono::NaiveTime value.
parse_time_partial
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.
read_number
Retrieve an integer in text form.