#[non_exhaustive]pub enum ExplicitLengthSqItemStrategy {
SetUndefined,
NoChange,
}
Expand description
A strategy for writing data set sequences and items when the writer encounters a sequence or item with explicit (defined) length.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
SetUndefined
All explicit length items and sequences
are converted to Length::UNDEFINED
.
This means that even if you create or read a data set with explicit length items / sequences, the resulting output of the writer will have undefined lengths for all items and sequences, expect for encapsulated pixel data fragments.
This is, as of yet, the safest way to handle explicit length items and sequences, and thus the default behavior.
NoChange
Explicit length items and sequences are written without any change, left as they were encountered in the data set.
Item and sequence lengths in the data set will not be recalculated! As a consequence, if the content of a sequence or item with explicit length is manipulated after it was created or read from a source (thus possibly changing its real size), this strategy will not update the length of that sequence or item, producing invalid output.
Trait Implementations§
Source§impl Clone for ExplicitLengthSqItemStrategy
impl Clone for ExplicitLengthSqItemStrategy
Source§fn clone(&self) -> ExplicitLengthSqItemStrategy
fn clone(&self) -> ExplicitLengthSqItemStrategy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExplicitLengthSqItemStrategy
impl Debug for ExplicitLengthSqItemStrategy
Source§impl Default for ExplicitLengthSqItemStrategy
impl Default for ExplicitLengthSqItemStrategy
Source§fn default() -> ExplicitLengthSqItemStrategy
fn default() -> ExplicitLengthSqItemStrategy
Source§impl Hash for ExplicitLengthSqItemStrategy
impl Hash for ExplicitLengthSqItemStrategy
Source§impl PartialEq for ExplicitLengthSqItemStrategy
impl PartialEq for ExplicitLengthSqItemStrategy
Source§fn eq(&self, other: &ExplicitLengthSqItemStrategy) -> bool
fn eq(&self, other: &ExplicitLengthSqItemStrategy) -> bool
self
and other
values to be equal, and is used by ==
.impl Copy for ExplicitLengthSqItemStrategy
impl Eq for ExplicitLengthSqItemStrategy
impl StructuralPartialEq for ExplicitLengthSqItemStrategy
Auto Trait Implementations§
impl Freeze for ExplicitLengthSqItemStrategy
impl RefUnwindSafe for ExplicitLengthSqItemStrategy
impl Send for ExplicitLengthSqItemStrategy
impl Sync for ExplicitLengthSqItemStrategy
impl Unpin for ExplicitLengthSqItemStrategy
impl UnwindSafe for ExplicitLengthSqItemStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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