[][src]Trait dicom_object::DicomObject

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> { ... } }

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.

Associated Types

Loading content...

Required methods

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

Retrieve a particular DICOM element by its tag.

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

Retrieve a particular DICOM element by its name.

Loading content...

Provided methods

fn meta(&self) -> Option<&FileMetaTable>

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.

Loading content...

Implementors

impl<'a, T: 'a> DicomObject for &'a RootDicomObject<T> where
    T: DicomObject
[src]

type Element = <T as DicomObject>::Element

impl<'s, D: 's> DicomObject for &'s InMemDicomObject<D> where
    D: DataDictionary,
    D: Clone
[src]

type Element = &'s InMemElement<D>

impl<T> DicomObject for RootDicomObject<T> where
    T: DicomObject
[src]

type Element = <T as DicomObject>::Element

Loading content...