Module dicom_core::value::range

source ·
Expand description

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.

Structs

Represents a date range as two Option<chrono::NaiveDate> values. None means no upper or no lower bound for range is present.
Represents a date-time range as two Option<chrono::DateTime<FixedOffset>> values. None means no upper or no lower bound for range is present.
Represents a time range as two Option<chrono::NaiveTime> values. None means no upper or no lower bound for range is present.

Enums

Traits

The DICOM protocol accepts date / time values with null components.

Functions

Looks for a range separator ‘-’. Returns a DateRange.
Looks for a range separator ‘-’. Returns a DateTimeRange. Users are advised, that for very specific inputs, inconsistent behavior can occur. This behavior can only be produced when all of the following is true:
Looks for a range separator ‘-’. Returns a TimeRange.