Trait dicom_core::header::HasLength[][src]

pub trait HasLength {
    fn length(&self) -> Length;

    fn is_empty(&self) -> bool { ... }
}

Trait for any DICOM entity (element or item) which may have a length.

Required methods

fn length(&self) -> Length[src]

Retrieve the value data’s length as specified by the data element or item, in bytes.

It is named length to make it distinct from the conventional method signature len(&self) -> usize for the number of elements of a collection.

According to the standard, the concrete value size may be undefined, which can be the case for sequence elements or specific primitive values.

Loading content...

Provided methods

fn is_empty(&self) -> bool[src]

Check whether the value is empty (0 length).

Loading content...

Implementors

impl HasLength for PrimitiveValue[src]

impl HasLength for EmptyObject[src]

impl HasLength for SequenceItemHeader[src]

impl HasLength for DataElementHeader[src]

impl<'v, I, P> HasLength for DataElementRef<'v, I, P>[src]

impl<I, P> HasLength for &DataElement<I, P>[src]

impl<I, P> HasLength for Value<I, P>[src]

impl<I, P> HasLength for DataElement<I, P>[src]

Loading content...