dicom_core::dictionary

Trait UidDictionary

Source
pub trait UidDictionary {
    type Entry: UidDictionaryEntry;

    // Required methods
    fn by_keyword(&self, keyword: &str) -> Option<&Self::Entry>;
    fn by_uid(&self, uid: &str) -> Option<&Self::Entry>;
}
Expand description

Type trait for a dictionary of known DICOM unique identifiers (UIDs).

UID dictionaries provide the means to look up information at run-time about a certain UID.

The methods herein have no generic parameters, so as to enable being used as a trait object.

Required Associated Types§

Source

type Entry: UidDictionaryEntry

The type of the dictionary entry.

Required Methods§

Source

fn by_keyword(&self, keyword: &str) -> Option<&Self::Entry>

Fetch an entry by its usual keyword (e.g. CTImageStorage). Aliases (or keywords) are usually in UpperCamelCase, not separated by spaces, and are case sensitive.

Source

fn by_uid(&self, uid: &str) -> Option<&Self::Entry>

Fetch an entry by its UID.

Implementors§