Struct dicom_core::header::DataElementHeader
source · [−]Expand description
A data structure for a data element header, containing a tag, value representation and specified length.
Fields
tag: Tag
DICOM tag
vr: VR
Value Representation
len: Length
Element length
Implementations
sourceimpl DataElementHeader
impl DataElementHeader
sourcepub fn new<T: Into<Tag>>(tag: T, vr: VR, len: Length) -> DataElementHeader
pub fn new<T: Into<Tag>>(tag: T, vr: VR, len: Length) -> DataElementHeader
Create a new data element header with the given properties. This is just a trivial constructor.
sourcepub fn is_non_primitive(&self) -> bool
pub fn is_non_primitive(&self) -> bool
Check whether the header suggests the value to be a sequence value: if the value representation is SQ or the length is undefined.
Trait Implementations
sourceimpl Clone for DataElementHeader
impl Clone for DataElementHeader
sourcefn clone(&self) -> DataElementHeader
fn clone(&self) -> DataElementHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DataElementHeader
impl Debug for DataElementHeader
sourceimpl From<SequenceItemHeader> for DataElementHeader
impl From<SequenceItemHeader> for DataElementHeader
sourcefn from(value: SequenceItemHeader) -> DataElementHeader
fn from(value: SequenceItemHeader) -> DataElementHeader
Converts to this type from the input type.
sourceimpl HasLength for DataElementHeader
impl HasLength for DataElementHeader
sourceimpl Header for DataElementHeader
impl Header for DataElementHeader
sourcefn is_item_delimiter(&self) -> bool
fn is_item_delimiter(&self) -> bool
Check whether this is the header of an item delimiter.
sourcefn is_sequence_delimiter(&self) -> bool
fn is_sequence_delimiter(&self) -> bool
Check whether this is the header of a sequence delimiter.
sourcefn is_encapsulated_pixeldata(&self) -> bool
fn is_encapsulated_pixeldata(&self) -> bool
Check whether this is the header of an encapsulated pixel data.
sourceimpl PartialEq<DataElementHeader> for DataElementHeader
impl PartialEq<DataElementHeader> for DataElementHeader
sourcefn eq(&self, other: &DataElementHeader) -> bool
fn eq(&self, other: &DataElementHeader) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DataElementHeader) -> bool
fn ne(&self, other: &DataElementHeader) -> bool
This method tests for !=
.
impl Copy for DataElementHeader
impl StructuralPartialEq for DataElementHeader
Auto Trait Implementations
impl RefUnwindSafe for DataElementHeader
impl Send for DataElementHeader
impl Sync for DataElementHeader
impl Unpin for DataElementHeader
impl UnwindSafe for DataElementHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more