Struct dicom_core::header::DataElementRef
source · pub struct DataElementRef<'v, I: 'v, P: 'v> { /* private fields */ }Expand description
A data type that represents a DICOM data element with a borrowed value.
Implementations§
Trait Implementations§
source§impl<'v, I: Clone + 'v, P: Clone + 'v> Clone for DataElementRef<'v, I, P>
impl<'v, I: Clone + 'v, P: Clone + 'v> Clone for DataElementRef<'v, I, P>
source§fn clone(&self) -> DataElementRef<'v, I, P>
fn clone(&self) -> DataElementRef<'v, I, P>
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<'v, I, P> HasLength for DataElementRef<'v, I, P>
impl<'v, I, P> HasLength for DataElementRef<'v, I, P>
source§impl<'v, I, P> Header for DataElementRef<'v, I, P>
impl<'v, I, P> Header for DataElementRef<'v, I, P>
source§fn is_item_delimiter(&self) -> bool
fn is_item_delimiter(&self) -> bool
Check whether this is the header of an item delimiter.
source§fn is_sequence_delimiter(&self) -> bool
fn is_sequence_delimiter(&self) -> bool
Check whether this is the header of a sequence delimiter.
source§fn is_encapsulated_pixeldata(&self) -> bool
fn is_encapsulated_pixeldata(&self) -> bool
Check whether this is the header of an encapsulated pixel data.
source§impl<'v, I: PartialEq + 'v, P: PartialEq + 'v> PartialEq for DataElementRef<'v, I, P>
impl<'v, I: PartialEq + 'v, P: PartialEq + 'v> PartialEq for DataElementRef<'v, I, P>
source§fn eq(&self, other: &DataElementRef<'v, I, P>) -> bool
fn eq(&self, other: &DataElementRef<'v, I, P>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'v, I: 'v, P: 'v> StructuralPartialEq for DataElementRef<'v, I, P>
Auto Trait Implementations§
impl<'v, I, P> Freeze for DataElementRef<'v, I, P>
impl<'v, I, P> RefUnwindSafe for DataElementRef<'v, I, P>where
I: RefUnwindSafe,
P: RefUnwindSafe,
impl<'v, I, P> Send for DataElementRef<'v, I, P>
impl<'v, I, P> Sync for DataElementRef<'v, I, P>
impl<'v, I, P> Unpin for DataElementRef<'v, I, P>
impl<'v, I, P> UnwindSafe for DataElementRef<'v, I, P>where
I: RefUnwindSafe,
P: RefUnwindSafe,
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> 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