Trait dicom_core::value::DicomValueType[][src]

pub trait DicomValueType: HasLength {
    fn value_type(&self) -> ValueType;
fn cardinality(&self) -> usize; }

A trait for a value that maps to a DICOM element data value.

Required methods

fn value_type(&self) -> ValueType[src]

Retrieve the specific type of this value.

fn cardinality(&self) -> usize[src]

Retrieve the number of elements contained in the DICOM value.

In a sequence value, this is the number of items in the sequence. In an encapsulated pixel data sequence, the output is always 1. Otherwise, the output is the number of elements effectively encoded in the value.

Loading content...

Implementors

Loading content...