Enum dicom_parser::dataset::DataToken [−][src]
pub enum DataToken {
ElementHeader(DataElementHeader),
SequenceStart {
tag: Tag,
len: Length,
},
PixelSequenceStart,
SequenceEnd,
ItemStart {
len: Length,
},
ItemEnd,
PrimitiveValue(PrimitiveValue),
ItemValue(Vec<u8>),
}A token of a DICOM data set stream. This is part of the interpretation of a data set as a stream of symbols, which may either represent data headers or actual value data.
Variants
ElementHeader(DataElementHeader)A data header of a primitive value.
The beginning of a sequence element.
The beginning of an encapsulated pixel data element.
The ending delimiter of a sequence or encapsulated pixel data.
The beginning of a new item in the sequence.
Show fields
Fields of ItemStart
len: LengthThe ending delimiter of an item.
PrimitiveValue(PrimitiveValue)A primitive data element value.
An owned piece of raw data representing an item’s value.
This variant is used to represent the value of an offset table or a compressed fragment. It should not be used to represent nested data sets.
Implementations
impl DataToken[src]
impl DataToken[src]pub fn is_sequence_start(&self) -> bool[src]
Check whether this token represents the start of a sequence of nested data sets.
pub fn is_sequence_end(&self) -> bool[src]
Check whether this token represents the end of a sequence or the end of an encapsulated element.
Trait Implementations
impl From<DataElementHeader> for DataToken[src]
impl From<DataElementHeader> for DataToken[src]fn from(header: DataElementHeader) -> Self[src]
Auto Trait Implementations
impl RefUnwindSafe for DataToken
impl RefUnwindSafe for DataTokenimpl UnwindSafe for DataToken
impl UnwindSafe for DataToken