Enum dicom_core::header::SequenceItemHeader [−][src]
pub enum SequenceItemHeader {
Item {
len: Length,
},
ItemDelimiter,
SequenceDelimiter,
}Expand description
Data type for describing a sequence item data element. If the element represents an item, it will also contain the specified length.
Variants
The cursor contains an item.
Fields of Item
len: Lengththe length of the item in bytes (can be 0xFFFFFFFF if undefined)
The cursor read an item delimiter. The element ends here and should not be read any further.
The cursor read a sequence delimiter. The element ends here and should not be read any further.
Implementations
pub fn new<T: Into<Tag>>(
tag: T,
len: Length
) -> Result<SequenceItemHeader, SequenceItemHeaderError>
pub fn new<T: Into<Tag>>(
tag: T,
len: Length
) -> Result<SequenceItemHeader, SequenceItemHeaderError>
Create a sequence item header using the element’s raw properties. An error can be raised if the given properties do not relate to a sequence item, a sequence item delimiter or a sequence delimiter.
Trait Implementations
Performs the conversion.
Check whether this is the header of an item delimiter.
Check whether this is the header of a sequence delimiter.
Check whether this is the header of an encapsulated pixel data.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for SequenceItemHeader
impl Send for SequenceItemHeader
impl Sync for SequenceItemHeader
impl Unpin for SequenceItemHeader
impl UnwindSafe for SequenceItemHeader
Blanket Implementations
Mutably borrows from an owned value. Read more