Skip to content

Improve value ergonomics and improve performance of TryFrom around date/time types#526

Merged
Enet4 merged 2 commits intomasterfrom
imp/core/date-time-value-ergonomics
Jul 5, 2024
Merged

Improve value ergonomics and improve performance of TryFrom around date/time types#526
Enet4 merged 2 commits intomasterfrom
imp/core/date-time-value-ergonomics

Conversation

@Enet4
Copy link
Copy Markdown
Owner

@Enet4 Enet4 commented Jun 26, 2024

Summary

  • [core] Add more From impls for DicomValue<I,P> so that DicomDate, DicomTime, and DicomDateTime can be converted directly to it
  • [core] Optimize TryFrom impls for DICOM date/time types by using with_context instead of context

@Enet4 Enet4 added enhancement A-lib Area: library C-core Crate: dicom-core labels Jun 26, 2024
Enet4 added 2 commits June 26, 2024 20:17
- DicomDate, DicomTime, and DicomDateTime
- use with_context
  to prevent unnecessary to_string calls on success
@Enet4 Enet4 force-pushed the imp/core/date-time-value-ergonomics branch from 1f38eae to 0243863 Compare June 26, 2024 19:17
@Enet4 Enet4 merged commit 69dc58c into master Jul 5, 2024
@Enet4 Enet4 deleted the imp/core/date-time-value-ergonomics branch July 5, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-lib Area: library C-core Crate: dicom-core enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant