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§
Item
The cursor contains an item.
ItemDelimiter
The cursor read an item delimiter. The element ends here and should not be read any further.
SequenceDelimiter
The cursor read a sequence delimiter. The element ends here and should not be read any further.
Implementations§
Source§impl SequenceItemHeader
impl SequenceItemHeader
Sourcepub 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§
Source§impl Clone for SequenceItemHeader
impl Clone for SequenceItemHeader
Source§fn clone(&self) -> SequenceItemHeader
fn clone(&self) -> SequenceItemHeader
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 SequenceItemHeader
impl Debug for SequenceItemHeader
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 SequenceItemHeader
impl HasLength for SequenceItemHeader
Source§impl Header for SequenceItemHeader
impl Header for SequenceItemHeader
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 SequenceItemHeader
impl PartialEq for SequenceItemHeader
impl Copy for SequenceItemHeader
impl StructuralPartialEq for SequenceItemHeader
Auto Trait Implementations§
impl Freeze for SequenceItemHeader
impl RefUnwindSafe for SequenceItemHeader
impl Send for SequenceItemHeader
impl Sync for SequenceItemHeader
impl Unpin for SequenceItemHeader
impl UnwindSafe for SequenceItemHeader
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