Trait dicom_core::dictionary::DataDictionary[][src]

pub trait DataDictionary: Debug {
    type Entry: DictionaryEntry;
    fn by_name(&self, name: &str) -> Option<&Self::Entry>;
fn by_tag(&self, tag: Tag) -> Option<&Self::Entry>; }

Type trait for a dictionary of DICOM attributes. Attribute dictionaries provide the

  • means to convert a tag to an alias and vice versa, as well as a form of retrieving
  • additional information about the attribute.
  • The methods herein have no generic parameters, so as to enable being
  • used as a trait object.

Associated Types

type Entry: DictionaryEntry[src]

The type of the dictionary entry.

Loading content...

Required methods

fn by_name(&self, name: &str) -> Option<&Self::Entry>[src]

Fetch an entry by its usual alias (e.g. “PatientName” or “SOPInstanceUID”). Aliases are usually case sensitive and not separated by spaces.

fn by_tag(&self, tag: Tag) -> Option<&Self::Entry>[src]

Fetch an entry by its tag.

Loading content...

Implementations on Foreign Types

impl DataDictionary for Box<StubDataDictionary>[src]

type Entry = DictionaryEntryRef<'static>

Loading content...

Implementors

impl DataDictionary for StubDataDictionary[src]

type Entry = DictionaryEntryRef<'static>

impl<'a> DataDictionary for &'a StubDataDictionary[src]

type Entry = DictionaryEntryRef<'static>

Loading content...