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: TagDICOM tag
vr: VRValue Representation
len: LengthElement length
Implementations§
source§impl 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§
source§impl Clone for DataElementHeader
impl Clone for DataElementHeader
source§fn clone(&self) -> DataElementHeader
fn clone(&self) -> DataElementHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DataElementHeader
impl Debug for DataElementHeader
source§impl From<SequenceItemHeader> for DataElementHeader
impl From<SequenceItemHeader> for DataElementHeader
source§fn from(value: SequenceItemHeader) -> DataElementHeader
fn from(value: SequenceItemHeader) -> DataElementHeader
Converts to this type from the input type.
source§impl HasLength for DataElementHeader
impl HasLength for DataElementHeader
source§impl Header for DataElementHeader
impl Header for DataElementHeader
source§fn is_item_delimiter(&self) -> bool
fn is_item_delimiter(&self) -> bool
Check whether this is the header of an item delimiter.
source§fn is_sequence_delimiter(&self) -> bool
fn is_sequence_delimiter(&self) -> bool
Check whether this is the header of a sequence delimiter.
source§fn is_encapsulated_pixeldata(&self) -> bool
fn is_encapsulated_pixeldata(&self) -> bool
Check whether this is the header of an encapsulated pixel data.