[−][src]Struct dicom_core::header::DataElement
A data type that represents and owns a DICOM data element. Unlike
PrimitiveDataElement
, this type may contain multiple data elements
through the item sequence VR (of type I
).
Methods
impl<I> DataElement<I> where
I: DicomValueType,
[src]
I: DicomValueType,
pub fn empty(tag: Tag, vr: VR) -> Self
[src]
Create an empty data element.
pub fn new(tag: Tag, vr: VR, value: Value<I>) -> Self
[src]
Create a primitive data element from the given parts. This method will not check whether the value representation is compatible with the given value.
pub fn header(&self) -> &DataElementHeader
[src]
Retrieve the element header.
pub fn value(&self) -> &Value<I>
[src]
Retrieve the data value.
pub fn vr(&self) -> VR
[src]
Retrieve the value representation, which may be unknown or not applicable.
pub fn to_str(&self) -> Result<Cow<str>>
[src]
Retrieve the element's value as a single string.
Trait Implementations
impl<I> Header for DataElement<I>
[src]
fn tag(&self) -> Tag
[src]
fn len(&self) -> Length
[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.
impl<'a, I> Header for &'a DataElement<I>
[src]
fn tag(&self) -> Tag
[src]
fn len(&self) -> Length
[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.
impl<I> From<PrimitiveDataElement> for DataElement<I>
[src]
fn from(o: PrimitiveDataElement) -> Self
[src]
impl<I: PartialEq> PartialEq<DataElement<I>> for DataElement<I>
[src]
fn eq(&self, other: &DataElement<I>) -> bool
[src]
fn ne(&self, other: &DataElement<I>) -> bool
[src]
impl<I: Clone> Clone for DataElement<I>
[src]
fn clone(&self) -> DataElement<I>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<I: Debug> Debug for DataElement<I>
[src]
Auto Trait Implementations
impl<I> Send for DataElement<I> where
I: Send,
I: Send,
impl<I> Unpin for DataElement<I> where
I: Unpin,
I: Unpin,
impl<I> Sync for DataElement<I> where
I: Sync,
I: Sync,
impl<I> UnwindSafe for DataElement<I> where
I: RefUnwindSafe + UnwindSafe,
I: RefUnwindSafe + UnwindSafe,
impl<I> RefUnwindSafe for DataElement<I> where
I: RefUnwindSafe,
I: 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,