dicom_core/dictionary/
stub.rsuse super::{DataDictionary, DataDictionaryEntryRef};
use crate::header::Tag;
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct StubDataDictionary;
impl DataDictionary for StubDataDictionary {
type Entry = DataDictionaryEntryRef<'static>;
fn by_name(&self, _: &str) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
fn by_tag(&self, _: Tag) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
}
impl DataDictionary for &'_ StubDataDictionary {
type Entry = DataDictionaryEntryRef<'static>;
fn by_name(&self, _: &str) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
fn by_tag(&self, _: Tag) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
}
impl DataDictionary for Box<StubDataDictionary> {
type Entry = DataDictionaryEntryRef<'static>;
fn by_name(&self, _: &str) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
fn by_tag(&self, _: Tag) -> Option<&DataDictionaryEntryRef<'static>> {
None
}
}