Struct dicom_core::header::PrimitiveDataElement
source · [−]pub struct PrimitiveDataElement { /* private fields */ }
Expand description
A data type that represents and owns a DICOM data element containing a primitive value.
Implementations
sourceimpl PrimitiveDataElement
impl PrimitiveDataElement
sourcepub fn new(header: DataElementHeader, value: PrimitiveValue) -> Self
pub fn new(header: DataElementHeader, value: PrimitiveValue) -> Self
Main constructor for a primitive data element.
Trait Implementations
sourceimpl Clone for PrimitiveDataElement
impl Clone for PrimitiveDataElement
sourcefn clone(&self) -> PrimitiveDataElement
fn clone(&self) -> PrimitiveDataElement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PrimitiveDataElement
impl Debug for PrimitiveDataElement
sourceimpl<I, P> From<PrimitiveDataElement> for DataElement<I, P>
impl<I, P> From<PrimitiveDataElement> for DataElement<I, P>
sourcefn from(o: PrimitiveDataElement) -> Self
fn from(o: PrimitiveDataElement) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PrimitiveDataElement> for PrimitiveDataElement
impl PartialEq<PrimitiveDataElement> for PrimitiveDataElement
sourcefn eq(&self, other: &PrimitiveDataElement) -> bool
fn eq(&self, other: &PrimitiveDataElement) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PrimitiveDataElement) -> bool
fn ne(&self, other: &PrimitiveDataElement) -> bool
This method tests for !=
.
impl StructuralPartialEq for PrimitiveDataElement
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveDataElement
impl Send for PrimitiveDataElement
impl Sync for PrimitiveDataElement
impl Unpin for PrimitiveDataElement
impl UnwindSafe for PrimitiveDataElement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more