Enet4 / dicom-rs

Rust implementation of the DICOM standard
https://dicom-rs.github.io
Apache License 2.0
404 stars 76 forks source link

Changes to DicomValue API and sequences #353

Closed Enet4 closed 1 year ago

Enet4 commented 1 year ago

This makes some usability improvements to the core value API. The main changes here are the enum DicomValue<I, P> now has a different default for the type parameter P (to the same value used by in-memory DICOM objects in dicom_object), and it uses struct definitions for data set sequences and pixel data fragment sequence, instead of declaring struct variants in the enum.

I also took this opportunity to remove deprecated functions, adjust the error types returned in some methods, and increase test coverage a bit.

Summary