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]
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: Clone + 'v, P: Clone + 'v> Clone for DataElementRef<'v, I, P>[src]fn clone(&self) -> DataElementRef<'v, I, P>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'v, I: Debug + 'v, P: Debug + 'v> Debug 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> HasLength for DataElementRef<'v, I, P>[src]impl<'v, I, P> Header for DataElementRef<'v, I, P>[src]
impl<'v, I, P> Header for DataElementRef<'v, I, P>[src]fn tag(&self) -> Tag[src]
fn is_item(&self) -> bool[src]
fn is_item_delimiter(&self) -> bool[src]
fn is_sequence_delimiter(&self) -> bool[src]
fn is_encapsulated_pixeldata(&self) -> bool[src]
impl<'v, I: PartialEq + 'v, P: PartialEq + 'v> PartialEq<DataElementRef<'v, I, P>> 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]fn eq(&self, other: &DataElementRef<'v, I, P>) -> bool[src]
fn ne(&self, other: &DataElementRef<'v, I, P>) -> bool[src]
impl<'v, I: 'v, P: 'v> StructuralPartialEq 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> 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> 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> 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> Unpin for DataElementRef<'v, I, P>impl<'v, I, P> UnwindSafe for DataElementRef<'v, I, P> where
I: RefUnwindSafe,
P: RefUnwindSafe,
impl<'v, I, P> UnwindSafe for DataElementRef<'v, I, P> where
I: RefUnwindSafe,
P: RefUnwindSafe,