[][src]Struct dicom_object::RootDicomObject

pub struct RootDicomObject<T> { /* fields omitted */ }

A root DICOM object contains additional meta information about the object

  • (such as the DICOM file's meta header).

Methods

impl RootDicomObject<InMemDicomObject<StandardDataDictionary>>[src]

pub fn open_file<P: AsRef<Path>>(path: P) -> Result<Self>[src]

Create a DICOM object by reading from a file.

This function assumes the standard file encoding structure: 128-byte preamble, file meta group, and the rest of the data set.

pub fn from_reader<S>(src: S) -> Result<Self> where
    S: Read
[src]

Create a DICOM object by reading from a byte source.

This function assumes the standard file encoding structure without the preamble: file meta group, followed by the rest of the data set.

impl<D> RootDicomObject<InMemDicomObject<D>> where
    D: DataDictionary,
    D: Clone
[src]

pub fn new_empty_with_dict_and_meta(dict: D, meta: FileMetaTable) -> Self[src]

Create a new empty object, using the given dictionary and file meta table.

pub fn open_file_with_dict<P: AsRef<Path>>(path: P, dict: D) -> Result<Self>[src]

Create a DICOM object by reading from a file.

This function assumes the standard file encoding structure: 128-byte preamble, file meta group, and the rest of the data set.

pub fn from_reader_with_dict<S>(src: S, dict: D) -> Result<Self> where
    S: Read
[src]

Create a DICOM object by reading from a byte source.

This function assumes the standard file encoding structure without the preamble: file meta group, followed by the rest of the data set.

impl<T> RootDicomObject<T>[src]

pub fn meta(&self) -> &FileMetaTable[src]

Retrieve the processed meta header table.

Trait Implementations

impl<T> DicomObject for RootDicomObject<T> where
    T: DicomObject
[src]

type Element = <T as DicomObject>::Element

impl<'a, T: 'a> DicomObject for &'a RootDicomObject<T> where
    T: DicomObject
[src]

type Element = <T as DicomObject>::Element

fn meta(&self) -> Option<&FileMetaTable>[src]

Retrieve the processed meta information table, if available. Read more

impl<T: PartialEq> PartialEq<RootDicomObject<T>> for RootDicomObject<T>[src]

impl<T: Clone> Clone for RootDicomObject<T>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<T> DerefMut for RootDicomObject<T>[src]

impl<T> Deref for RootDicomObject<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T: Debug> Debug for RootDicomObject<T>[src]

Auto Trait Implementations

impl<T> Send for RootDicomObject<T> where
    T: Send

impl<T> Unpin for RootDicomObject<T> where
    T: Unpin

impl<T> Sync for RootDicomObject<T> where
    T: Sync

impl<T> UnwindSafe for RootDicomObject<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for RootDicomObject<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]