dicom_encoding::transfer_syntax

Trait TransferSyntaxIndex

Source
pub trait TransferSyntaxIndex {
    // Required method
    fn get(&self, uid: &str) -> Option<&TransferSyntax>;
}
Expand description

Trait for a container/repository of transfer syntax specifiers.

Types implementing this trait are held responsible for populating themselves with a set of transfer syntaxes, which can be fully supported, partially supported, or not supported. Usually, only one implementation of this trait is used for the entire program, the most common one being the TransferSyntaxRegistry type from transfer-syntax-registry.

Required Methods§

Source

fn get(&self, uid: &str) -> Option<&TransferSyntax>

Obtain a DICOM transfer syntax by its respective UID.

Implementations of this method should be robust to the possible presence of trailing null characters (\0) in uid.

Implementations on Foreign Types§

Source§

impl<T> TransferSyntaxIndex for &T

Source§

fn get(&self, uid: &str) -> Option<&TransferSyntax>

Implementors§