Struct dicom_core::header::DataElementRef[][src]

pub struct DataElementRef<'v, I: 'v, P: 'v> { /* fields omitted */ }

A data type that represents a DICOM data element with a borrowed value.

Implementations

impl<'v, I, P> DataElementRef<'v, I, P> where
    I: HasLength
[src]

pub fn new(tag: Tag, vr: VR, value: &'v Value<I, P>) -> Self[src]

Create a data element from the given parts. This method will not check whether the value representation is compatible with the value. Caution is advised.

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

Retrieves the element’s value representation, which can be unknown.

pub fn value(&self) -> &Value<I, P>[src]

Retrieves the DICOM value.

Trait Implementations

impl<'v, I: Clone + 'v, P: Clone + 'v> Clone for DataElementRef<'v, I, P>[src]

impl<'v, I: Debug + 'v, P: Debug + 'v> Debug for DataElementRef<'v, I, P>[src]

impl<'v, I, P> HasLength for DataElementRef<'v, I, P>[src]

impl<'v, I, P> Header for DataElementRef<'v, I, P>[src]

impl<'v, I: PartialEq + 'v, P: PartialEq + 'v> PartialEq<DataElementRef<'v, I, P>> for DataElementRef<'v, I, P>[src]

impl<'v, I: 'v, P: 'v> StructuralPartialEq for DataElementRef<'v, I, P>[src]

Auto Trait Implementations

impl<'v, I, P> RefUnwindSafe for DataElementRef<'v, I, P> where
    I: RefUnwindSafe,
    P: RefUnwindSafe

impl<'v, I, P> Send for DataElementRef<'v, I, P> where
    I: Sync,
    P: Sync

impl<'v, I, P> Sync for DataElementRef<'v, I, P> where
    I: Sync,
    P: Sync

impl<'v, I, P> Unpin for DataElementRef<'v, I, P>

impl<'v, I, P> UnwindSafe for DataElementRef<'v, I, P> where
    I: RefUnwindSafe,
    P: RefUnwindSafe

Blanket Implementations

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

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

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

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.