Struct dicom_dictionary_parser::data_element::DataElement
source · pub struct DataElement {
pub tag: String,
pub name: String,
pub keyword: String,
pub vr: String,
pub vm: String,
pub comment: Option<String>,
}
Expand description
A unit of information as defined by a single entry in the DICOM data dictionary.
Fields§
§tag: String
Unique identifier for a data element composed of an ordered pair of numbers (a Group Number followed by an Element Number) in the format “(gggg,eeee)”.
name: String
The unique name of the data element as a human-readable string (e.g. “Specific Character Set”).
keyword: String
The unique name of the data element with zero-width spaces instead of actual spaces.as one word. This can be used to e.g. transform it more easily into something like a function name or identifier. The format is: “Length\u{200b}To\u{200b}End” where “\u{200b}” is the code point for the zero-width space.
vr: String
The Value Representation of the data element as two upper-case letters. The format is: “TM”.
vm: String
The Value Multiplicity of the data element as single digit or range. The format is: “2-n”.
comment: Option<String>
Additional comment for the data element (e.g. “RET” for retired elements).
Implementations§
source§impl DataElement
impl DataElement
pub fn new() -> DataElement
Trait Implementations§
source§impl Clone for DataElement
impl Clone for DataElement
source§fn clone(&self) -> DataElement
fn clone(&self) -> DataElement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DataElement
impl Debug for DataElement
source§impl Default for DataElement
impl Default for DataElement
source§fn default() -> DataElement
fn default() -> DataElement
source§impl Display for DataElement
impl Display for DataElement
source§impl Hash for DataElement
impl Hash for DataElement
source§impl PartialEq<DataElement> for DataElement
impl PartialEq<DataElement> for DataElement
source§fn eq(&self, other: &DataElement) -> bool
fn eq(&self, other: &DataElement) -> bool
impl Eq for DataElement
impl StructuralEq for DataElement
impl StructuralPartialEq for DataElement
Auto Trait Implementations§
impl RefUnwindSafe for DataElement
impl Send for DataElement
impl Sync for DataElement
impl Unpin for DataElement
impl UnwindSafe for DataElement
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.