pub struct DataSetSequence<I> { /* private fields */ }
Expand description
A sequence of complex data set items of type I
.
Implementations§
Source§impl<I> DataSetSequence<I>
impl<I> DataSetSequence<I>
Sourcepub fn new(items: impl Into<C<I>>, length: Length) -> Self
pub fn new(items: impl Into<C<I>>, length: Length) -> Self
Construct a DICOM data sequence using a sequence of items and a length.
Note: This function does not validate the length
against the items.
When not sure,
length
can be set to UNDEFINED
to leave it as implicitly defined.
Sourcepub fn empty() -> Self
pub fn empty() -> Self
Construct an empty DICOM data sequence, with the length explicitly defined to zero.
Sourcepub fn multiplicity(&self) -> u32
pub fn multiplicity(&self) -> u32
Obtain the number of items in the sequence.
Sourcepub fn into_items(self) -> C<I>
pub fn into_items(self) -> C<I>
Retrieve the sequence of items, discarding the recorded length information.
Sourcepub fn length(&self) -> Length
pub fn length(&self) -> Length
Get the value data’s length as specified by the sequence’s data element, in bytes.
This is equivalent to HasLength::length
.
Trait Implementations§
Source§impl<I: Clone> Clone for DataSetSequence<I>
impl<I: Clone> Clone for DataSetSequence<I>
Source§fn clone(&self) -> DataSetSequence<I>
fn clone(&self) -> DataSetSequence<I>
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<I: Debug> Debug for DataSetSequence<I>
impl<I: Debug> Debug for DataSetSequence<I>
Source§impl<I> DicomValueType for DataSetSequence<I>
impl<I> DicomValueType for DataSetSequence<I>
Source§fn value_type(&self) -> ValueType
fn value_type(&self) -> ValueType
Retrieve the specific type of this value.
Source§fn cardinality(&self) -> usize
fn cardinality(&self) -> usize
Retrieve the number of elements contained in the DICOM value. Read more
Source§impl<I> From<[I; 1]> for DataSetSequence<I>
impl<I> From<[I; 1]> for DataSetSequence<I>
Source§impl<I, P> From<DataSetSequence<I>> for Value<I, P>
impl<I, P> From<DataSetSequence<I>> for Value<I, P>
Source§fn from(value: DataSetSequence<I>) -> Self
fn from(value: DataSetSequence<I>) -> Self
Converts to this type from the input type.
Source§impl<A, I> From<SmallVec<A>> for DataSetSequence<I>
impl<A, I> From<SmallVec<A>> for DataSetSequence<I>
Source§impl<I> From<Vec<I>> for DataSetSequence<I>
impl<I> From<Vec<I>> for DataSetSequence<I>
Source§impl<I> HasLength for DataSetSequence<I>
impl<I> HasLength for DataSetSequence<I>
Source§impl<I> PartialEq for DataSetSequence<I>where
I: PartialEq,
impl<I> PartialEq for DataSetSequence<I>where
I: PartialEq,
Source§fn eq(&self, other: &DataSetSequence<I>) -> bool
fn eq(&self, other: &DataSetSequence<I>) -> bool
This method tests for self
and other
values to be equal,
and is used by ==
.
This implementation only checks for item equality, disregarding the byte length.
Auto Trait Implementations§
impl<I> Freeze for DataSetSequence<I>where
I: Freeze,
impl<I> RefUnwindSafe for DataSetSequence<I>where
I: RefUnwindSafe,
impl<I> Send for DataSetSequence<I>where
I: Send,
impl<I> Sync for DataSetSequence<I>where
I: Sync,
impl<I> Unpin for DataSetSequence<I>where
I: Unpin,
impl<I> UnwindSafe for DataSetSequence<I>where
I: RefUnwindSafe + UnwindSafe,
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