pub struct InMemDicomObject<D = StandardDataDictionary> { /* private fields */ }
Expand description

A DICOM object that is fully contained in memory.

Implementations§

👎Deprecated since 0.5.0: Use new_empty instead

Create a new empty DICOM object.

Create a new empty DICOM object.

Construct a DICOM object from a fallible source of structured elements.

Construct a DICOM object from a non-fallible source of structured elements.

Read an object from a source using the given decoder.

Note: read_dataset_with_ts and read_dataset_with_ts_cs may be easier to use.

Read an object from a source, using the given transfer syntax and default character set.

If the attribute Specific Character Set is found in the encoded data, this will override the given character set.

Read an object from a source, using the given transfer syntax.

The default character set is assumed until Specific Character Set is found in the encoded data, after which the text decoder will be overriden accordingly.

Create a new empty object, using the given dictionary for name lookup.

Construct a DICOM object from an iterator of structured elements.

Construct a DICOM object from a non-fallible iterator of structured elements.

Read an object from a source, using the given decoder and the given dictionary for name lookup.

Read an object from a source, using the given data dictionary and transfer syntax.

Read an object from a source, using the given data dictionary, transfer syntax, and the given character set to assume by default.

If the attribute Specific Character Set is found in the encoded data, this will override the given character set.

👎Deprecated since 0.5.3: Always returns None, see FileDicomObject::meta instead

Retrieve the object’s meta table if available.

At the moment, this is sure to return None, because the meta table is kept in a separate wrapper value.

Retrieve a particular DICOM element by its tag.

An error is returned if the element does not exist. For an alternative to this behavior, see element_opt.

Retrieve a particular DICOM element by its name.

This method translates the given attribute name into its tag before retrieving the element. If the attribute is known in advance, using element with a tag constant is preferred.

An error is returned if the element does not exist. For an alternative to this behavior, see element_by_name_opt.

Retrieve a particular DICOM element that might not exist by its tag.

If the element does not exist, None is returned.

Retrieve a particular DICOM element that might not exist by its name.

If the element does not exist, None is returned.

This method translates the given attribute name into its tag before retrieving the element. If the attribute is known in advance, using element_opt with a tag constant is preferred.

Insert a data element to the object, replacing (and returning) any previous element of the same attribute.

Insert a data element to the object, replacing (and returning) any previous element of the same attribute.

Remove a DICOM element by its tag, reporting whether it was present.

Remove a DICOM element by its keyword, reporting whether it was present.

Remove and return a particular DICOM element by its tag.

Remove and return a particular DICOM element by its name.

Modify the object by retaining only the DICOM data elements specified by the predicate.

The elements are visited in ascending tag order, and those for which f(&element) returns false are removed.

Write this object’s data set into the given writer, with the given encoder specifications, without preamble, magic code, nor file meta group.

The text encoding to use will be the default character set until Specific Character Set is found in the data set, in which then that character set will be used.

Note: write_dataset_with_ts and write_dataset_with_ts_cs may be easier to use.

Write this object’s data set into the given printer, with the specified transfer syntax and character set, without preamble, magic code, nor file meta group.

If the attribute Specific Character Set is found in the data set, the last parameter is overridden accordingly.

Write this object’s data set into the given writer, with the specified transfer syntax, without preamble, magic code, nor file meta group.

The default character set is assumed until the Specific Character Set is found in the data set, after which the text encoder is overridden accordingly.

Encapsulate this object to contain a file meta group as described exactly by the given table.

Note: this method will not adjust the file meta group to be semantically valid for the object.

Encapsulate this object to contain a file meta group, created through the given file meta table builder.

The attribute Media Storage SOP Instance UID will be filled in with the contents of the object, if the attribute SOP Instance UID is present. A complete file meta group should still provide the media storage SOP class UID and transfer syntax.

Obtain an iterator over the elements of this object.

Obtain an iteartor over the tags of the object’s elements.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Retrieve a particular DICOM element by its tag.
Retrieve a particular DICOM element by its name.
Retrieve the processed meta information table, if available. Read more
Extends a collection with the contents of an iterator. Read more
🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
Retrieve the value data’s length as specified by the data element or item, in bytes. Read more
Check whether the value is empty (0 length).
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The type of the elements being iterated over.
Which kind of iterator are we turning this into?
Creates an iterator from a value. Read more
The iterator type through which tokens are obtained.
Convert the value into tokens.
The iterator type through which tokens are obtained.
Convert the value into tokens.
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more