[−][src]Struct dicom_object::RootDicomObject
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]
S: Read,
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]
D: DataDictionary,
D: Clone,
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]
S: Read,
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]
T: DicomObject,
type Element = <T as DicomObject>::Element
fn element(&self, tag: Tag) -> Result<Self::Element>
[src]
fn element_by_name(&self, name: &str) -> Result<Self::Element>
[src]
fn meta(&self) -> Option<&FileMetaTable>
[src]
impl<'a, T: 'a> DicomObject for &'a RootDicomObject<T> where
T: DicomObject,
[src]
T: DicomObject,
type Element = <T as DicomObject>::Element
fn element(&self, tag: Tag) -> Result<Self::Element>
[src]
fn element_by_name(&self, name: &str) -> Result<Self::Element>
[src]
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]
fn eq(&self, other: &RootDicomObject<T>) -> bool
[src]
fn ne(&self, other: &RootDicomObject<T>) -> bool
[src]
impl<T: Clone> Clone for RootDicomObject<T>
[src]
fn clone(&self) -> 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]
impl<T: Debug> Debug for RootDicomObject<T>
[src]
Auto Trait Implementations
impl<T> Send for RootDicomObject<T> where
T: Send,
T: Send,
impl<T> Unpin for RootDicomObject<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for RootDicomObject<T> where
T: Sync,
T: Sync,
impl<T> UnwindSafe for RootDicomObject<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for RootDicomObject<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,