pub struct DeferredValues { /* private fields */ }Expand description
The values a deferring read (OpenFileOptions::open_file_deferring) skipped rather than
loaded, mirroring the data set’s shape: one entry per top-level tag that was either deferred
itself or is a sequence with deferred values somewhere inside its items.
A deferred element is still present in the object, with an empty placeholder value of the
same kind (an empty U8 for a primitive value, an empty fragment sequence for encapsulated
pixel data) - so it is listed, filtered and removed like any other element, but its value
must be taken from here (e.g. as a DICOM JSON BulkDataURI), never from the object.
Implementations§
Source§impl DeferredValues
impl DeferredValues
Sourcepub fn value(&self, tag: Tag) -> Option<DeferredValueLocation>
pub fn value(&self, tag: Tag) -> Option<DeferredValueLocation>
The location of tag’s value at this level, if it was deferred.
Sourcepub fn item(&self, tag: Tag, index: usize) -> Option<&DeferredValues>
pub fn item(&self, tag: Tag, index: usize) -> Option<&DeferredValues>
The deferred values inside item index of sequence tag, if it has any.
pub fn is_empty(&self) -> bool
Sourcepub fn insert_value(&mut self, tag: Tag, location: DeferredValueLocation)
pub fn insert_value(&mut self, tag: Tag, location: DeferredValueLocation)
Record tag’s value at this level as deferred to location - for building the same
description from another source of locations (e.g. a data set a caller already holds as
references into its file), to write it with the deferred-aware JSON writer.
Sourcepub fn insert_items(&mut self, tag: Tag, items: Vec<DeferredValues>)
pub fn insert_items(&mut self, tag: Tag, items: Vec<DeferredValues>)
Record the per-item scopes of sequence tag (one per item, in item order; empty scopes
for items with nothing deferred). Nothing is recorded when every scope is empty.
Trait Implementations§
Source§impl Clone for DeferredValues
impl Clone for DeferredValues
Source§impl Debug for DeferredValues
impl Debug for DeferredValues
Source§impl Default for DeferredValues
impl Default for DeferredValues
impl Eq for DeferredValues
Source§impl PartialEq for DeferredValues
impl PartialEq for DeferredValues
impl StructuralPartialEq for DeferredValues
Auto Trait Implementations§
impl Forget for DeferredValues
impl Freeze for DeferredValues
impl Move for DeferredValues
impl RefUnwindSafe for DeferredValues
impl Send for DeferredValues
impl Sync for DeferredValues
impl Unpin for DeferredValues
impl UnsafeUnpin for DeferredValues
impl UnwindSafe for DeferredValues
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