pub struct DataElementHeader {
pub tag: Tag,
pub vr: VR,
pub len: Length,
}
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§
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.
Source§impl PartialEq for DataElementHeader
impl PartialEq for DataElementHeader
impl Copy for DataElementHeader
impl StructuralPartialEq for DataElementHeader
Auto Trait Implementations§
impl Freeze for DataElementHeader
impl RefUnwindSafe for DataElementHeader
impl Send for DataElementHeader
impl Sync for DataElementHeader
impl Unpin for DataElementHeader
impl UnwindSafe for DataElementHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more