pub trait DicomObject {
    type Element: Header;

    fn element(&self, tag: Tag) -> Result<Self::Element>;
    fn element_by_name(&self, name: &str) -> Result<Self::Element>;

    fn meta(&self) -> Option<&FileMetaTable> { ... }
}
Expand description

Trait type for a DICOM object. This is a high-level abstraction where an object is accessed and manipulated as dictionary of entries indexed by tags, which in turn may contain a DICOM object.

This trait interface is experimental and prone to sudden changes.

Required Associated Types§

Required Methods§

Retrieve a particular DICOM element by its tag.

Retrieve a particular DICOM element by its name.

Provided Methods§

Retrieve the processed meta information table, if available.

This table will generally not be reachable from children objects in another object with a valid meta table. As such, it is recommended for this method to be called at the root of a DICOM object.

Implementors§