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.
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.
Implementations on Foreign Types
impl DataDictionary for Box<StubDataDictionary>
[src]
impl DataDictionary for Box<StubDataDictionary>
[src]type Entry = DictionaryEntryRef<'static>
fn by_name(&self, _: &str) -> Option<&DictionaryEntryRef<'static>>
[src]
fn by_tag(&self, _: Tag) -> Option<&DictionaryEntryRef<'static>>
[src]
Implementors
impl DataDictionary for StubDataDictionary
[src]
impl DataDictionary for StubDataDictionary
[src]type Entry = DictionaryEntryRef<'static>
fn by_name(&self, _: &str) -> Option<&DictionaryEntryRef<'static>>
[src]
fn by_tag(&self, _: Tag) -> Option<&DictionaryEntryRef<'static>>
[src]
impl<'a> DataDictionary for &'a StubDataDictionary
[src]
impl<'a> DataDictionary for &'a StubDataDictionary
[src]