[][src]Struct dicom_parser::dataset::DicomElementMarker

pub struct DicomElementMarker {
    pub header: DataElementHeader,
    pub pos: u64,
}

A data type for a DICOM element residing in a file, or any other source with random access. A position in the file is kept for future access.

Fields

header: DataElementHeader

The header, kept in memory. At this level, the value representation "UN" may also refer to a non-applicable vr (i.e. for items and delimiters).

pos: u64

The ending position of the element's header (or the starting position of the element's value if it exists), relative to the beginning of the file.

Methods

impl DicomElementMarker[src]

pub fn get_data_stream<S: ?Sized, B: DerefMut<Target = S>>(
    &self,
    source: B
) -> Result<SeekInterval<S, B>> where
    S: ReadSeek, 
[src]

Obtain an interval of the raw data associated to this element's data value.

pub fn move_to_start<S: ?Sized, B: DerefMut<Target = S>>(
    &self,
    source: B
) -> Result<()> where
    S: Seek
[src]

Move the source to the position indicated by the marker

pub fn vr(&self) -> VR[src]

Getter for this element's value representation. May be UN when this is not applicable.

Trait Implementations

impl PartialEq<DicomElementMarker> for DicomElementMarker[src]

impl Clone for DicomElementMarker[src]

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

Performs copy-assignment from source. Read more

impl Copy for DicomElementMarker[src]

impl Debug for DicomElementMarker[src]

impl Header for DicomElementMarker[src]

fn is_item(&self) -> bool[src]

Check whether this is the header of an item.

fn is_item_delimiter(&self) -> bool[src]

Check whether this is the header of an item delimiter.

fn is_sequence_delimiter(&self) -> bool[src]

Check whether this is the header of a sequence delimiter.

Auto Trait Implementations

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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