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
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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl 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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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