Enum dicom_parser::dataset::LazyDataTokenRepr
source · pub enum LazyDataTokenRepr {
ElementHeader(DataElementHeader),
SequenceStart {
tag: Tag,
len: Length,
},
PixelSequenceStart,
SequenceEnd,
ItemStart {
len: Length,
},
ItemEnd,
LazyValue {
header: DataElementHeader,
},
LazyItemValue {
len: u32,
},
}Expand description
A structured description of a lazy data token, for diagnostics and error reporting purposes.
Variants§
ElementHeader(DataElementHeader)
A data header of a primitive value.
SequenceStart
The beginning of a sequence element.
PixelSequenceStart
The beginning of an encapsulated pixel data element.
SequenceEnd
The ending delimiter of a sequence or encapsulated pixel data.
ItemStart
The beginning of a new item in the sequence.
ItemEnd
The ending delimiter of an item.
LazyValue
Fields
§
header: DataElementHeaderthe header of the respective value
An element value yet to be fetched
LazyItemValue
An item value yet to be fetched
Trait Implementations§
source§impl Clone for LazyDataTokenRepr
impl Clone for LazyDataTokenRepr
source§fn clone(&self) -> LazyDataTokenRepr
fn clone(&self) -> LazyDataTokenRepr
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 LazyDataTokenRepr
impl Debug for LazyDataTokenRepr
source§impl<D> From<&LazyDataToken<D>> for LazyDataTokenRepr
impl<D> From<&LazyDataToken<D>> for LazyDataTokenRepr
source§fn from(token: &LazyDataToken<D>) -> Self
fn from(token: &LazyDataToken<D>) -> Self
Converts to this type from the input type.
source§impl<D> From<LazyDataToken<D>> for LazyDataTokenRepr
impl<D> From<LazyDataToken<D>> for LazyDataTokenRepr
source§fn from(token: LazyDataToken<D>) -> Self
fn from(token: LazyDataToken<D>) -> Self
Converts to this type from the input type.
source§impl PartialEq<LazyDataTokenRepr> for LazyDataTokenRepr
impl PartialEq<LazyDataTokenRepr> for LazyDataTokenRepr
source§fn eq(&self, other: &LazyDataTokenRepr) -> bool
fn eq(&self, other: &LazyDataTokenRepr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for LazyDataTokenRepr
Auto Trait Implementations§
impl RefUnwindSafe for LazyDataTokenRepr
impl Send for LazyDataTokenRepr
impl Sync for LazyDataTokenRepr
impl Unpin for LazyDataTokenRepr
impl UnwindSafe for LazyDataTokenRepr
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