Struct dicom_core::value::DataSetSequence  
source · 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default 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